Upgrade from JavaEE to JakartaEE 10. Requires Java 11+ and an application server that supports JakartaEE 10 such as Payara 6.
+Fix authorization of lists of ICAT entities and use Python3 for scripts
diff --git a/src/test/java/org/icatproject/core/manager/TestLucene.java b/src/test/java/org/icatproject/core/manager/TestLucene.java index a02425260..2d48db6cc 100644 --- a/src/test/java/org/icatproject/core/manager/TestLucene.java +++ b/src/test/java/org/icatproject/core/manager/TestLucene.java @@ -18,9 +18,9 @@ import java.util.Set; import java.util.concurrent.ConcurrentLinkedQueue; -import javax.json.Json; -import javax.json.stream.JsonGenerator; -import javax.ws.rs.core.MediaType; +import jakarta.json.Json; +import jakarta.json.stream.JsonGenerator; +import jakarta.ws.rs.core.MediaType; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpPost; diff --git a/src/test/java/org/icatproject/exposed/TestICATRest.java b/src/test/java/org/icatproject/exposed/TestICATRest.java index bb642d272..6ab58e413 100644 --- a/src/test/java/org/icatproject/exposed/TestICATRest.java +++ b/src/test/java/org/icatproject/exposed/TestICATRest.java @@ -15,8 +15,8 @@ import java.math.BigDecimal; import java.math.BigInteger; -import javax.json.Json; -import javax.json.stream.JsonGenerator; +import jakarta.json.Json; +import jakarta.json.stream.JsonGenerator; import org.icatproject.exposed.ICATRest; import org.icatproject.core.entity.ParameterValueType; diff --git a/src/test/java/org/icatproject/integration/TestRS.java b/src/test/java/org/icatproject/integration/TestRS.java index c5fd4b7ab..53e4875c2 100644 --- a/src/test/java/org/icatproject/integration/TestRS.java +++ b/src/test/java/org/icatproject/integration/TestRS.java @@ -39,12 +39,12 @@ import java.util.Set; import java.util.regex.Pattern; -import javax.json.Json; -import javax.json.JsonArray; -import javax.json.JsonNumber; -import javax.json.JsonObject; -import javax.json.JsonValue; -import javax.json.stream.JsonGenerator; +import jakarta.json.Json; +import jakarta.json.JsonArray; +import jakarta.json.JsonNumber; +import jakarta.json.JsonObject; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; import org.icatproject.core.manager.LuceneApi; import org.icatproject.icat.client.ICAT; @@ -500,7 +500,7 @@ private JsonArray searchDatafiles(Session session, String user, String text, Dat @Test public void testVersion() throws Exception { ICAT icat = new ICAT(System.getProperty("serverUrl")); - assertTrue(icat.getVersion().startsWith("5.")); + assertTrue(icat.getVersion().startsWith("6.")); } @Test diff --git a/src/test/java/org/icatproject/integration/TestWS.java b/src/test/java/org/icatproject/integration/TestWS.java index 97cc73691..dde35597b 100644 --- a/src/test/java/org/icatproject/integration/TestWS.java +++ b/src/test/java/org/icatproject/integration/TestWS.java @@ -71,7 +71,7 @@ */ public class TestWS { - private static final String version = "5.0."; + private static final String version = "6.0."; private static Random random; private static WSession session; diff --git a/src/test/java/org/icatproject/integration/WSession.java b/src/test/java/org/icatproject/integration/WSession.java index 6483c46bd..196fc1126 100644 --- a/src/test/java/org/icatproject/integration/WSession.java +++ b/src/test/java/org/icatproject/integration/WSession.java @@ -6,11 +6,11 @@ import java.util.Arrays; import java.util.List; -import javax.json.Json; -import javax.json.JsonString; +import jakarta.json.Json; +import jakarta.json.JsonString; import javax.xml.datatype.XMLGregorianCalendar; import javax.xml.namespace.QName; -import javax.xml.ws.WebServiceException; +import jakarta.xml.ws.WebServiceException; import org.icatproject.AccessType; import org.icatproject.Application;