diff --git a/pom.xml b/pom.xml index f2c9d10..3a9c4d7 100755 --- a/pom.xml +++ b/pom.xml @@ -44,11 +44,12 @@ - 20.1.0.2 - 2.27 - 1.7.25 - 0.12.0 - 2.7.3 + 25.1.0.2 + 2.40 + 2.0.7 + 0.13.1 + 2.7.10 + 5.9.3 1.8 1.8 UTF-8 @@ -70,14 +71,13 @@ org.mozilla rhino - 1.7.7.1 - provided + 1.7.14 + provided net.sf.saxon Saxon-HE - 9.8.0-12 - provided + 11.4 com.evolvedbinary.xpath @@ -85,21 +85,16 @@ 1.0 - javax.xml.bind - jaxb-api - 2.3.1 - - - com.sun.xml.bind - jaxb-core - 2.3.0.1 - runtime + jakarta.xml.bind + jakarta.xml.bind-api + 2.3.3 + provided com.sun.xml.bind jaxb-impl - 2.3.1 - runtime + 2.3.3 + provided org.eclipse.persistence @@ -125,9 +120,9 @@ - javax.annotation - javax.annotation-api - 1.3.2 + jakarta.annotation + jakarta.annotation-api + 1.3.5 compile @@ -154,9 +149,9 @@ runtime - javax.ws.rs - javax.ws.rs-api - 2.1.1 + jakarta.ws.rs + jakarta.ws.rs-api + 2.1.6 org.slf4j @@ -170,6 +165,13 @@ ${jaxb2-basics.version} + + xml-apis + xml-apis + 1.4.01 + provided + + org.slf4j slf4j-log4j12 @@ -178,9 +180,15 @@ - junit - junit - 4.12 + org.junit.jupiter + junit-jupiter-api + ${junit.jupiter.version} + test + + + org.junit.jupiter + junit-jupiter-engine + ${junit.jupiter.version} test @@ -195,31 +203,18 @@ ${jersey.version} test - - + org.glassfish.jersey.core jersey-server ${jersey.version} test - - + commons-codec commons-codec - 1.11 + 1.14 test @@ -258,9 +253,9 @@ - org.jvnet.jaxb2.maven2 - maven-jaxb22-plugin - 0.14.0 + com.evolvedbinary.maven.jvnet + jaxb23-maven-plugin + 0.15.0 true @@ -285,7 +280,7 @@ org.apache.maven.plugins maven-dependency-plugin - 3.1.1 + 3.6.0 analyze @@ -302,9 +297,12 @@ org.glassfish.jersey.media:jersey-media-jaxb org.glassfish.jersey.inject:jersey-hk2 org.glassfish:javax.json - com.sun.xml.bind:jaxb-core com.sun.xml.bind:jaxb-impl + org.junit.jupiter:junit-jupiter-engine + + jakarta.annotation:jakarta.annotation-api + @@ -325,7 +323,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.10.1 + 3.11.0 ${project.build.source} ${project.build.target} @@ -336,6 +334,18 @@ + + org.apache.maven.plugins + maven-surefire-plugin + 3.1.2 + + + org.junit.jupiter + junit-jupiter-engine + ${junit.jupiter.version} + + + org.apache.maven.plugins maven-jar-plugin @@ -363,7 +373,7 @@ org.apache.maven.plugins maven-shade-plugin - 3.4.1 + 3.5.0 package @@ -419,7 +429,7 @@ org.apache.maven.plugins maven-source-plugin - 3.2.1 + 3.3.0 @@ -452,7 +462,7 @@ org.apache.maven.plugins maven-enforcer-plugin - 3.1.0 + 3.3.0 enforce-java @@ -473,12 +483,12 @@ org.apache.maven.plugins maven-gpg-plugin - 3.0.1 + 3.1.0 org.apache.maven.plugins maven-release-plugin - 2.5.3 + 3.0.1 forked-path true diff --git a/src/test/java/org/humanistika/oxygen/tei/completer/XPathUtilTest.java b/src/test/java/org/humanistika/oxygen/tei/completer/XPathUtilTest.java index b6479b6..deb3be7 100644 --- a/src/test/java/org/humanistika/oxygen/tei/completer/XPathUtilTest.java +++ b/src/test/java/org/humanistika/oxygen/tei/completer/XPathUtilTest.java @@ -23,10 +23,11 @@ import static com.evolvedbinary.xpath.parser.ast.QNameW.WILDCARD; -import org.junit.Test; +import org.junit.jupiter.api.Test; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; /** * @author Adam Retter, Evolved Binary Ltd @@ -66,14 +67,18 @@ public void isSubset() { // assertTrue(XPathUtil.isSubset("/TEI/text[1]/body[1]/p[2]/w[7]/@lemma", "//w")); } - @Test(expected = IllegalArgumentException.class) + @Test public void isSubset_illegalSubset() { - XPathUtil.isSubset("a/b", "//a"); + assertThrows(IllegalArgumentException.class, () -> + XPathUtil.isSubset("a/b", "//a") + ); } - @Test(expected = IllegalArgumentException.class) + @Test public void isSubset_illegalSuperset() { - XPathUtil.isSubset("//a", "a/b"); + assertThrows(IllegalArgumentException.class, () -> + XPathUtil.isSubset("//a", "a/b") + ); } @Test diff --git a/src/test/java/org/humanistika/oxygen/tei/completer/remote/impl/JerseyClientTest.java b/src/test/java/org/humanistika/oxygen/tei/completer/remote/impl/JerseyClientTest.java index 67b9ed4..7e54180 100644 --- a/src/test/java/org/humanistika/oxygen/tei/completer/remote/impl/JerseyClientTest.java +++ b/src/test/java/org/humanistika/oxygen/tei/completer/remote/impl/JerseyClientTest.java @@ -30,8 +30,8 @@ import org.humanistika.oxygen.tei.completer.configuration.beans.ResponseAction; import org.humanistika.oxygen.tei.completer.remote.ClientFactory.AuthenticationType; import javax.annotation.Nullable; -import org.junit.Ignore; -import org.junit.Test; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import javax.annotation.security.PermitAll; import javax.annotation.security.RolesAllowed; @@ -53,7 +53,7 @@ import java.security.Principal; import java.util.zip.GZIPOutputStream; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * Integration tests for {@link org.humanistika.oxygen.tei.completer.remote.impl.JerseyClient} @@ -492,7 +492,7 @@ public void secure_preemptiveBasic_GetLemmaSelectionDependent_Xml() { assertEquals(expectedSuggestions.getSuggestion(), suggestions.getSuggestion()); } - @Ignore("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") + @Disabled("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") @Test public void secure_nonPreemptiveBasic_GetLemmaSelection_Xml() { final String selection = "some-selection"; @@ -507,7 +507,7 @@ public void secure_nonPreemptiveBasic_GetLemmaSelection_Xml() { assertEquals(expectedSuggestions.getSuggestion(), suggestions.getSuggestion()); } - @Ignore("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") + @Disabled("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") @Test public void secure_nonPreemptiveBasic_GetLemmaSelectionDependent_Xml() { final String selection = "some-selection"; @@ -522,7 +522,7 @@ public void secure_nonPreemptiveBasic_GetLemmaSelectionDependent_Xml() { assertEquals(expectedSuggestions.getSuggestion(), suggestions.getSuggestion()); } - @Ignore("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") + @Disabled("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") @Test public void secure_Digest_GetLemmaSelection_Xml() { final String selection = "some-selection"; @@ -537,7 +537,7 @@ public void secure_Digest_GetLemmaSelection_Xml() { assertEquals(expectedSuggestions.getSuggestion(), suggestions.getSuggestion()); } - @Ignore("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") + @Disabled("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") @Test public void secure_Digest_GetLemmaSelectionDependent_Xml() { final String selection = "some-selection"; @@ -552,7 +552,7 @@ public void secure_Digest_GetLemmaSelectionDependent_Xml() { assertEquals(expectedSuggestions.getSuggestion(), suggestions.getSuggestion()); } - @Ignore("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") + @Disabled("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") @Test public void secure_nonPreemptiveBasicDigest_GetLemmaSelection_Xml() { final String selection = "some-selection"; @@ -567,7 +567,7 @@ public void secure_nonPreemptiveBasicDigest_GetLemmaSelection_Xml() { assertEquals(expectedSuggestions.getSuggestion(), suggestions.getSuggestion()); } - @Ignore("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") + @Disabled("Requires non-preemptive support in Jersey Server. See https://java.net/jira/browse/JERSEY-2908") @Test public void secure_nonPreemptiveBasicDigest_GetLemmaSelectionDependent_Xml() { final String selection = "some-selection";