Ensures that authorization rules are read in a separate transaction.
+Upgrade from JavaEE to JakartaEE 10. Requires Java 11+ and an application server that supports JakartaEE 10 such as Payara 6.
diff --git a/src/test/java/org/icatproject/core/manager/TestEntityInfo.java b/src/test/java/org/icatproject/core/manager/TestEntityInfo.java index 295ae7ee..c44fd686 100644 --- a/src/test/java/org/icatproject/core/manager/TestEntityInfo.java +++ b/src/test/java/org/icatproject/core/manager/TestEntityInfo.java @@ -2,6 +2,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.lang.reflect.Field; @@ -433,6 +434,14 @@ public void relInKey() throws Exception { testRelInkey(DataCollectionDatafile.class, "dataCollection", "datafile"); } + @Test + public void testAbstractEntities() throws Exception { + assertNotNull(EntityInfoHandler.getClass("Parameter")); + assertNotNull(EntityInfoHandler.getEntityInfo("Parameter")); + assertNotNull(EntityInfoHandler.getClass("EntityBaseBean")); + assertNotNull(EntityInfoHandler.getEntityInfo("EntityBaseBean")); + } + private void testRelInkey(Class extends EntityBaseBean> klass, String... fieldNames) throws Exception { Set