From 832095297c6f44285022f996bcbd566eb5756969 Mon Sep 17 00:00:00 2001 From: Eduardo Martins Date: Wed, 30 Sep 2026 03:57:25 +0100 Subject: [PATCH 1/2] [WFLY-19812] move to junit 6 --- batch-processing/pom.xml | 12 +++- .../as/quickstarts/batch/BasicRuntimeIT.java | 4 +- bmt/pom.xml | 12 +++- .../as/quickstarts/bmt/BasicRuntimeIT.java | 4 +- cmt/pom.xml | 12 +++- .../as/quickstarts/cmt/BasicRuntimeIT.java | 4 +- .../jboss/as/quickstarts/cmt/CustomerIT.java | 12 ++-- .../cmt/ejb/CustomerManagerEJBTest.java | 6 +- ee-security/pom.xml | 12 +++- .../ee_security/BasicRuntimeIT.java | 4 +- ejb-multi-server/app-web/pom.xml | 5 +- .../ejb/multi/server/app/BasicRuntimeIT.java | 4 +- ejb-multi-server/pom.xml | 8 +++ ejb-remote/pom.xml | 12 +++- .../ejb/remote/BasicRuntimeIT.java | 4 +- .../quickstarts/ejb/remote/EJBRemoteIT.java | 12 ++-- ejb-security-context-propagation/pom.xml | 12 +++- .../BasicRuntimeIT.java | 4 +- .../SecurityContextPropagationIT.java | 2 +- ejb-security-programmatic-auth/pom.xml | 14 ++++- .../BasicRuntimeIT.java | 4 +- ejb-throws-exception/pom.xml | 8 +++ ejb-throws-exception/web/pom.xml | 4 +- .../ear/controller/BasicRuntimeIT.java | 4 +- ejb-timer/pom.xml | 12 +++- .../quickstarts/ejb/timer/BasicRuntimeIT.java | 4 +- ejb-txn-remote-call/client/pom.xml | 12 +++- .../as/quickstarts/ejb/BasicRuntimeIT.java | 4 +- ejb-txn-remote-call/server/pom.xml | 12 +++- .../as/quickstarts/ejb/BasicRuntimeIT.java | 4 +- ha-singleton-deployment/pom.xml | 13 +++-- ha-singleton-service/pom.xml | 13 +++-- helloworld-jms/pom.xml | 13 +++-- helloworld-mdb/pom.xml | 13 +++-- helloworld-mutual-ssl-secured/pom.xml | 12 +++- .../BasicRuntimeIT.java | 4 +- helloworld-mutual-ssl/pom.xml | 12 +++- .../helloworld_mutual_ssl/BasicRuntimeIT.java | 4 +- helloworld-rs/pom.xml | 12 +++- .../helloworld/rest/RESTEndPointIT.java | 12 ++-- helloworld-singleton/pom.xml | 13 +++-- helloworld-ws/pom.xml | 14 +++-- .../as/quickstarts/wshelloworld/ClientIT.java | 12 ++-- helloworld/pom.xml | 12 +++- .../helloworld/BasicRuntimeIT.java | 4 +- hibernate/pom.xml | 13 +++-- http-custom-mechanism/pom.xml | 8 +++ http-custom-mechanism/webapp/pom.xml | 4 +- .../http_custom_mechanism/BasicRuntimeIT.java | 8 +-- jaxrs-client/pom.xml | 4 +- jaxrs-jwt/pom.xml | 4 +- jaxws-ejb/pom.xml | 12 +++- .../org/jboss/quickstarts/wsejb/ClientIT.java | 12 ++-- jaxws-retail/pom.xml | 13 ++++- .../jboss/quickstarts/wsretail/ClientIT.java | 12 ++-- jsonp/pom.xml | 12 +++- .../as/quickstarts/jsonp/BasicRuntimeIT.java | 4 +- jta-crash-rec/pom.xml | 12 +++- .../as/quickstarts/xa/BasicRuntimeIT.java | 4 +- jts/application-component-1/pom.xml | 4 +- .../quickstarts/cmt/jts/BasicRuntimeIT.java | 14 ++--- jts/pom.xml | 8 +++ kitchensink/pom.xml | 12 +++- .../kitchensink/test/BasicRuntimeIT.java | 4 +- .../test/MemberRegistrationIT.java | 8 +-- logging/pom.xml | 5 +- mail/pom.xml | 12 +++- .../as/quickstarts/mail/BasicRuntimeIT.java | 4 +- .../as/quickstarts/mail/MailTestCaseIT.java | 24 ++++---- messaging-clustering-singleton/pom.xml | 13 +++-- micrometer/pom.xml | 12 +++- .../micrometer/BasicRuntimeIT.java | 4 +- .../quickstarts/micrometer/MicrometerIT.java | 4 +- microprofile-config/pom.xml | 13 ++++- .../microprofile/config/BasicRuntimeIT.java | 4 +- microprofile-fault-tolerance/pom.xml | 12 +++- .../faulttolerance/CoffeeResourceIT.java | 58 +++++++++---------- microprofile-health/pom.xml | 12 +++- .../microprofile/health/BasicRuntimeIT.java | 4 +- .../health/MicroProfileHealthIT.java | 34 +++++------ microprofile-jwt/pom.xml | 12 +++- .../quickstarts/mpjwt/BasicRuntimeIT.java | 6 +- .../quickstarts/mpjwt/JWTClientIT.java | 28 ++++----- microprofile-lra/pom.xml | 12 +++- .../microprofile/lra/BasicRuntimeIT.java | 4 +- .../microprofile/lra/MicroProfileLRAIT.java | 14 ++--- microprofile-openapi/pom.xml | 12 +++- .../microprofile/openapi/BasicRuntimeIT.java | 4 +- .../openapi/OpenAPIContextIT.java | 10 ++-- microprofile-reactive-messaging-kafka/pom.xml | 12 +++- .../messaging/test/BasicRuntimeIT.java | 6 +- .../test/ReactiveMessagingKafkaIT.java | 22 +++---- microprofile-rest-client/pom.xml | 4 +- numberguess/pom.xml | 12 +++- .../numberguess/BasicRuntimeIT.java | 4 +- .../numberguess/NumberguessIT.java | 6 +- opentelemetry-tracing/pom.xml | 12 +++- .../opentelemetry/BasicRuntimeIT.java | 4 +- .../opentelemetry/OpenTelemetryIT.java | 4 +- remote-helloworld-mdb/pom.xml | 13 +++-- security-domain-to-domain/ejb/pom.xml | 4 +- security-domain-to-domain/pom.xml | 8 +++ security-domain-to-domain/test/pom.xml | 4 +- .../BasicRuntimeIT.java | 4 +- servlet-async/pom.xml | 13 +++-- servlet-filterlistener/pom.xml | 13 +++-- servlet-security/pom.xml | 13 +++-- spring-resteasy/pom.xml | 12 +++- .../resteasyspring/test/BasicRuntimeIT.java | 6 +- .../resteasyspring/test/ResteasySpringIT.java | 52 ++++++++--------- tasks-jsf/pom.xml | 13 +++-- temperature-converter/pom.xml | 12 +++- .../temperatureconverter/BasicRuntimeIT.java | 4 +- .../TemperatureConverterIT.java | 10 ++-- thread-racing/pom.xml | 12 +++- .../threadracing/BasicRuntimeIT.java | 4 +- .../threadracing/ThreadRacingIT.java | 16 ++--- todo-backend/pom.xml | 11 +++- websocket-endpoint/pom.xml | 12 +++- websocket-hello/pom.xml | 11 +++- 120 files changed, 787 insertions(+), 425 deletions(-) diff --git a/batch-processing/pom.xml b/batch-processing/pom.xml index ec44e16d30..8499a585b4 100644 --- a/batch-processing/pom.xml +++ b/batch-processing/pom.xml @@ -50,6 +50,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -63,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -173,8 +181,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/batch-processing/src/test/java/org/jboss/as/quickstarts/batch/BasicRuntimeIT.java b/batch-processing/src/test/java/org/jboss/as/quickstarts/batch/BasicRuntimeIT.java index 33c83244f9..ffda43fb62 100644 --- a/batch-processing/src/test/java/org/jboss/as/quickstarts/batch/BasicRuntimeIT.java +++ b/batch-processing/src/test/java/org/jboss/as/quickstarts/batch/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.batch; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/bmt/pom.xml b/bmt/pom.xml index 0388eaf11f..cdaba726f3 100644 --- a/bmt/pom.xml +++ b/bmt/pom.xml @@ -50,6 +50,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -63,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -114,8 +122,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/bmt/src/test/java/org/jboss/as/quickstarts/bmt/BasicRuntimeIT.java b/bmt/src/test/java/org/jboss/as/quickstarts/bmt/BasicRuntimeIT.java index 64370391c6..9e1f179ad2 100644 --- a/bmt/src/test/java/org/jboss/as/quickstarts/bmt/BasicRuntimeIT.java +++ b/bmt/src/test/java/org/jboss/as/quickstarts/bmt/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.bmt; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/cmt/pom.xml b/cmt/pom.xml index 9c348438dc..9f01080381 100644 --- a/cmt/pom.xml +++ b/cmt/pom.xml @@ -49,6 +49,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -62,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -117,8 +125,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/cmt/src/test/java/org/jboss/as/quickstarts/cmt/BasicRuntimeIT.java b/cmt/src/test/java/org/jboss/as/quickstarts/cmt/BasicRuntimeIT.java index c9d2a8b517..92b02d1f49 100644 --- a/cmt/src/test/java/org/jboss/as/quickstarts/cmt/BasicRuntimeIT.java +++ b/cmt/src/test/java/org/jboss/as/quickstarts/cmt/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.cmt; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/cmt/src/test/java/org/jboss/as/quickstarts/cmt/CustomerIT.java b/cmt/src/test/java/org/jboss/as/quickstarts/cmt/CustomerIT.java index 9c07287120..013e6133fa 100644 --- a/cmt/src/test/java/org/jboss/as/quickstarts/cmt/CustomerIT.java +++ b/cmt/src/test/java/org/jboss/as/quickstarts/cmt/CustomerIT.java @@ -31,8 +31,8 @@ import java.net.http.HttpResponse; import java.nio.charset.StandardCharsets; import java.util.Map; -import org.junit.Assert; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class CustomerIT { @@ -74,8 +74,8 @@ public void addCustomer(String name) throws IOException, InterruptedException { .build(); HttpResponse response = client.send(HttpRequest.newBuilder(getHTTPEndpoint("/addCustomer.jsf")).GET().build(), HttpResponse.BodyHandlers.ofString()); String body = response.body().toString(); - Assert.assertEquals(200, response.statusCode()); - Assert.assertTrue(body, body.contains(" data) { diff --git a/cmt/src/test/java/org/jboss/as/quickstarts/cmt/ejb/CustomerManagerEJBTest.java b/cmt/src/test/java/org/jboss/as/quickstarts/cmt/ejb/CustomerManagerEJBTest.java index 1c16ba6d2f..e32e2f4d35 100644 --- a/cmt/src/test/java/org/jboss/as/quickstarts/cmt/ejb/CustomerManagerEJBTest.java +++ b/cmt/src/test/java/org/jboss/as/quickstarts/cmt/ejb/CustomerManagerEJBTest.java @@ -16,10 +16,10 @@ */ package org.jboss.as.quickstarts.cmt.ejb; -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.assertTrue; -import org.junit.Test; +import org.junit.jupiter.api.Test; public class CustomerManagerEJBTest { @Test diff --git a/ee-security/pom.xml b/ee-security/pom.xml index 2ef57d911d..e3eb9b6f30 100644 --- a/ee-security/pom.xml +++ b/ee-security/pom.xml @@ -50,6 +50,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -63,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -97,8 +105,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/ee-security/src/test/java/org/jboss/as/quickstarts/ee_security/BasicRuntimeIT.java b/ee-security/src/test/java/org/jboss/as/quickstarts/ee_security/BasicRuntimeIT.java index dbb277e7a6..51ce71b2a9 100644 --- a/ee-security/src/test/java/org/jboss/as/quickstarts/ee_security/BasicRuntimeIT.java +++ b/ee-security/src/test/java/org/jboss/as/quickstarts/ee_security/BasicRuntimeIT.java @@ -20,7 +20,7 @@ */ package org.jboss.as.quickstarts.ee_security; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -29,7 +29,7 @@ import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * diff --git a/ejb-multi-server/app-web/pom.xml b/ejb-multi-server/app-web/pom.xml index f14467a1fe..ef72ba5a2f 100644 --- a/ejb-multi-server/app-web/pom.xml +++ b/ejb-multi-server/app-web/pom.xml @@ -66,8 +66,9 @@ provided - junit - junit + org.junit.jupiter + junit-jupiter + test diff --git a/ejb-multi-server/app-web/src/test/java/org/jboss/as/quickstarts/ejb/multi/server/app/BasicRuntimeIT.java b/ejb-multi-server/app-web/src/test/java/org/jboss/as/quickstarts/ejb/multi/server/app/BasicRuntimeIT.java index 81269516bf..b05b3dc65d 100644 --- a/ejb-multi-server/app-web/src/test/java/org/jboss/as/quickstarts/ejb/multi/server/app/BasicRuntimeIT.java +++ b/ejb-multi-server/app-web/src/test/java/org/jboss/as/quickstarts/ejb/multi/server/app/BasicRuntimeIT.java @@ -1,6 +1,6 @@ package org.jboss.as.quickstarts.ejb.multi.server.app; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -10,7 +10,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; public class BasicRuntimeIT { private static final String DEFAULT_SERVER_HOST = "http://localhost:8080"; diff --git a/ejb-multi-server/pom.xml b/ejb-multi-server/pom.xml index 7171c9ba20..1087c14caf 100644 --- a/ejb-multi-server/pom.xml +++ b/ejb-multi-server/pom.xml @@ -52,6 +52,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -65,6 +66,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + diff --git a/ejb-remote/pom.xml b/ejb-remote/pom.xml index e9ef6ed2e0..e6dd82e8e1 100644 --- a/ejb-remote/pom.xml +++ b/ejb-remote/pom.xml @@ -49,6 +49,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -62,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -87,8 +95,8 @@ test - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/ejb-remote/src/test/java/org/jboss/as/quickstarts/ejb/remote/BasicRuntimeIT.java b/ejb-remote/src/test/java/org/jboss/as/quickstarts/ejb/remote/BasicRuntimeIT.java index a3206e8f88..d344bc0cd2 100644 --- a/ejb-remote/src/test/java/org/jboss/as/quickstarts/ejb/remote/BasicRuntimeIT.java +++ b/ejb-remote/src/test/java/org/jboss/as/quickstarts/ejb/remote/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.ejb.remote; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/ejb-remote/src/test/java/org/jboss/as/quickstarts/ejb/remote/EJBRemoteIT.java b/ejb-remote/src/test/java/org/jboss/as/quickstarts/ejb/remote/EJBRemoteIT.java index 10b1a35702..7547fd0972 100644 --- a/ejb-remote/src/test/java/org/jboss/as/quickstarts/ejb/remote/EJBRemoteIT.java +++ b/ejb-remote/src/test/java/org/jboss/as/quickstarts/ejb/remote/EJBRemoteIT.java @@ -17,8 +17,8 @@ import org.jboss.as.quickstarts.ejb.remote.stateful.RemoteCounter; import org.jboss.as.quickstarts.ejb.remote.stateless.RemoteCalculator; -import org.junit.Assert; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; import javax.naming.Context; import javax.naming.InitialContext; @@ -75,7 +75,7 @@ public void testCalculator() throws NamingException { System.out.println("Adding " + a + " and " + b + " via the remote stateless calculator deployed on the server"); int sum = statelessRemoteCalculator.add(a, b); System.out.println("Remote calculator returned sum = " + sum); - Assert.assertEquals("Unexpected remote stateless calculator sum", (a + b), sum); + Assertions.assertEquals((a + b), sum, "Unexpected remote stateless calculator sum"); // try one more invocation, this time for subtraction int num1 = 3434; int num2 = 2332; @@ -83,7 +83,7 @@ public void testCalculator() throws NamingException { + " via the remote stateless calculator deployed on the server"); int difference = statelessRemoteCalculator.subtract(num1, num2); System.out.println("Remote calculator returned difference = " + difference); - Assert.assertEquals("Unexpected remote stateless calculator difference", (num1 - num2), difference); + Assertions.assertEquals((num1 - num2), difference, "Unexpected remote stateless calculator difference"); context.close(); } @@ -121,7 +121,7 @@ public void testCounter() throws NamingException { statefulRemoteCounter.increment(); System.out.println("Count after increment is " + statefulRemoteCounter.getCount()); } - Assert.assertEquals("Unexpected remote stateful counter value after increments", NUM_TIMES, statefulRemoteCounter.getCount()); + Assertions.assertEquals(NUM_TIMES, statefulRemoteCounter.getCount(), "Unexpected remote stateful counter value after increments"); // now decrementing System.out.println("Counter will now be decremented " + NUM_TIMES + " times"); for (int i = NUM_TIMES; i > 0; i--) { @@ -129,7 +129,7 @@ public void testCounter() throws NamingException { statefulRemoteCounter.decrement(); System.out.println("Count after decrement is " + statefulRemoteCounter.getCount()); } - Assert.assertEquals("Unexpected remote stateful counter value after decrements", 0, statefulRemoteCounter.getCount()); + Assertions.assertEquals(0, statefulRemoteCounter.getCount(), "Unexpected remote stateful counter value after decrements"); context.close(); } } diff --git a/ejb-security-context-propagation/pom.xml b/ejb-security-context-propagation/pom.xml index f43a16f20e..6e9ee432a6 100644 --- a/ejb-security-context-propagation/pom.xml +++ b/ejb-security-context-propagation/pom.xml @@ -49,6 +49,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -62,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -101,8 +109,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/ejb-security-context-propagation/src/test/java/org/jboss/as/quickstarts/ejb_security_context_propagation/BasicRuntimeIT.java b/ejb-security-context-propagation/src/test/java/org/jboss/as/quickstarts/ejb_security_context_propagation/BasicRuntimeIT.java index a3f896f551..7e9274ab72 100644 --- a/ejb-security-context-propagation/src/test/java/org/jboss/as/quickstarts/ejb_security_context_propagation/BasicRuntimeIT.java +++ b/ejb-security-context-propagation/src/test/java/org/jboss/as/quickstarts/ejb_security_context_propagation/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.ejb_security_context_propagation; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/ejb-security-context-propagation/src/test/java/org/jboss/as/quickstarts/ejb_security_context_propagation/SecurityContextPropagationIT.java b/ejb-security-context-propagation/src/test/java/org/jboss/as/quickstarts/ejb_security_context_propagation/SecurityContextPropagationIT.java index 9f746aa823..287e426c50 100644 --- a/ejb-security-context-propagation/src/test/java/org/jboss/as/quickstarts/ejb_security_context_propagation/SecurityContextPropagationIT.java +++ b/ejb-security-context-propagation/src/test/java/org/jboss/as/quickstarts/ejb_security_context_propagation/SecurityContextPropagationIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.ejb_security_context_propagation; -import org.junit.Test; +import org.junit.jupiter.api.Test; import org.wildfly.security.auth.client.AuthenticationConfiguration; import org.wildfly.security.auth.client.AuthenticationContext; import org.wildfly.security.auth.client.MatchRule; diff --git a/ejb-security-programmatic-auth/pom.xml b/ejb-security-programmatic-auth/pom.xml index 9b466a169b..8aead09ae9 100644 --- a/ejb-security-programmatic-auth/pom.xml +++ b/ejb-security-programmatic-auth/pom.xml @@ -49,7 +49,8 @@ 42.0.0.Beta1 ${version.server} - 6.0.2.Final + 6.1.3 + 6.0.2.Final @@ -62,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -99,8 +107,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/ejb-security-programmatic-auth/src/test/java/org/jboss/as/quickstarts/ejb_security_programmatic_auth/BasicRuntimeIT.java b/ejb-security-programmatic-auth/src/test/java/org/jboss/as/quickstarts/ejb_security_programmatic_auth/BasicRuntimeIT.java index 436274e2d2..bb8804a4d3 100644 --- a/ejb-security-programmatic-auth/src/test/java/org/jboss/as/quickstarts/ejb_security_programmatic_auth/BasicRuntimeIT.java +++ b/ejb-security-programmatic-auth/src/test/java/org/jboss/as/quickstarts/ejb_security_programmatic_auth/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.ejb_security_programmatic_auth; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -27,7 +27,7 @@ import java.time.Duration; import java.util.Base64; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/ejb-throws-exception/pom.xml b/ejb-throws-exception/pom.xml index fa64395bd3..20ddfdbe2b 100644 --- a/ejb-throws-exception/pom.xml +++ b/ejb-throws-exception/pom.xml @@ -56,6 +56,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -69,6 +70,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + diff --git a/ejb-throws-exception/web/pom.xml b/ejb-throws-exception/web/pom.xml index faea2f42e6..edefd00e62 100644 --- a/ejb-throws-exception/web/pom.xml +++ b/ejb-throws-exception/web/pom.xml @@ -77,8 +77,8 @@ provided - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/ejb-throws-exception/web/src/test/java/org/jboss/as/quickstarts/ear/controller/BasicRuntimeIT.java b/ejb-throws-exception/web/src/test/java/org/jboss/as/quickstarts/ear/controller/BasicRuntimeIT.java index 0706fb3958..2dd5cc6fd6 100644 --- a/ejb-throws-exception/web/src/test/java/org/jboss/as/quickstarts/ear/controller/BasicRuntimeIT.java +++ b/ejb-throws-exception/web/src/test/java/org/jboss/as/quickstarts/ear/controller/BasicRuntimeIT.java @@ -16,7 +16,7 @@ * limitations under the License. */ -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -26,7 +26,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/ejb-timer/pom.xml b/ejb-timer/pom.xml index 3a19128626..da0566f082 100644 --- a/ejb-timer/pom.xml +++ b/ejb-timer/pom.xml @@ -49,6 +49,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -62,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -99,8 +107,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/ejb-timer/src/test/java/org/jboss/as/quickstarts/ejb/timer/BasicRuntimeIT.java b/ejb-timer/src/test/java/org/jboss/as/quickstarts/ejb/timer/BasicRuntimeIT.java index 0728dbbda1..879bcbe5c0 100644 --- a/ejb-timer/src/test/java/org/jboss/as/quickstarts/ejb/timer/BasicRuntimeIT.java +++ b/ejb-timer/src/test/java/org/jboss/as/quickstarts/ejb/timer/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.ejb.timer; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; public class BasicRuntimeIT { private static final String DEFAULT_SERVER_HOST = "http://localhost:8080"; diff --git a/ejb-txn-remote-call/client/pom.xml b/ejb-txn-remote-call/client/pom.xml index b669949ce8..da096a32c8 100644 --- a/ejb-txn-remote-call/client/pom.xml +++ b/ejb-txn-remote-call/client/pom.xml @@ -42,6 +42,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final 42.7.13 @@ -72,6 +73,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -138,8 +146,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/ejb-txn-remote-call/client/src/test/java/org/jboss/as/quickstarts/ejb/BasicRuntimeIT.java b/ejb-txn-remote-call/client/src/test/java/org/jboss/as/quickstarts/ejb/BasicRuntimeIT.java index f35c427310..22dfa9627a 100644 --- a/ejb-txn-remote-call/client/src/test/java/org/jboss/as/quickstarts/ejb/BasicRuntimeIT.java +++ b/ejb-txn-remote-call/client/src/test/java/org/jboss/as/quickstarts/ejb/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.ejb; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/ejb-txn-remote-call/server/pom.xml b/ejb-txn-remote-call/server/pom.xml index d5af28070f..46362c793c 100644 --- a/ejb-txn-remote-call/server/pom.xml +++ b/ejb-txn-remote-call/server/pom.xml @@ -42,6 +42,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final 7.0.2.Final @@ -72,6 +73,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -122,8 +130,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/ejb-txn-remote-call/server/src/test/java/org/jboss/as/quickstarts/ejb/BasicRuntimeIT.java b/ejb-txn-remote-call/server/src/test/java/org/jboss/as/quickstarts/ejb/BasicRuntimeIT.java index 616087da18..9035522793 100644 --- a/ejb-txn-remote-call/server/src/test/java/org/jboss/as/quickstarts/ejb/BasicRuntimeIT.java +++ b/ejb-txn-remote-call/server/src/test/java/org/jboss/as/quickstarts/ejb/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.ejb; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/ha-singleton-deployment/pom.xml b/ha-singleton-deployment/pom.xml index 38146aa9d9..ee97f503a0 100644 --- a/ha-singleton-deployment/pom.xml +++ b/ha-singleton-deployment/pom.xml @@ -56,9 +56,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -72,9 +71,11 @@ import - org.junit.jupiter - junit-jupiter-engine - ${version.junit-jupiter} + org.junit + junit-bom + ${version.bom.junit} + pom + import @@ -94,7 +95,7 @@ org.junit.jupiter - junit-jupiter-engine + junit-jupiter test diff --git a/ha-singleton-service/pom.xml b/ha-singleton-service/pom.xml index 5095cc9e3b..de34561372 100644 --- a/ha-singleton-service/pom.xml +++ b/ha-singleton-service/pom.xml @@ -51,9 +51,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -67,9 +66,11 @@ import - org.junit.jupiter - junit-jupiter-engine - ${version.junit-jupiter} + org.junit + junit-bom + ${version.bom.junit} + pom + import @@ -94,7 +95,7 @@ org.junit.jupiter - junit-jupiter-engine + junit-jupiter test diff --git a/helloworld-jms/pom.xml b/helloworld-jms/pom.xml index 5b4e7f0b43..c5d4b037fe 100644 --- a/helloworld-jms/pom.xml +++ b/helloworld-jms/pom.xml @@ -49,9 +49,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -65,9 +64,11 @@ import - org.junit.jupiter - junit-jupiter-engine - ${version.junit-jupiter-engine} + org.junit + junit-bom + ${version.bom.junit} + pom + import @@ -87,7 +88,7 @@ org.junit.jupiter - junit-jupiter-engine + junit-jupiter test diff --git a/helloworld-mdb/pom.xml b/helloworld-mdb/pom.xml index 485c680fcb..82adb57da2 100644 --- a/helloworld-mdb/pom.xml +++ b/helloworld-mdb/pom.xml @@ -50,9 +50,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -66,9 +65,11 @@ import - org.junit.jupiter - junit-jupiter-engine - ${version.junit-jupiter-engine} + org.junit + junit-bom + ${version.bom.junit} + pom + import @@ -103,7 +104,7 @@ org.junit.jupiter - junit-jupiter-engine + junit-jupiter test diff --git a/helloworld-mutual-ssl-secured/pom.xml b/helloworld-mutual-ssl-secured/pom.xml index 23d849fb63..7325a79440 100644 --- a/helloworld-mutual-ssl-secured/pom.xml +++ b/helloworld-mutual-ssl-secured/pom.xml @@ -50,6 +50,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -63,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -92,8 +100,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/helloworld-mutual-ssl-secured/src/test/java/org/jboss/as/quickstarts/helloworld_mutual_ssl_secured/BasicRuntimeIT.java b/helloworld-mutual-ssl-secured/src/test/java/org/jboss/as/quickstarts/helloworld_mutual_ssl_secured/BasicRuntimeIT.java index def10b49a3..0f6dbb03d2 100644 --- a/helloworld-mutual-ssl-secured/src/test/java/org/jboss/as/quickstarts/helloworld_mutual_ssl_secured/BasicRuntimeIT.java +++ b/helloworld-mutual-ssl-secured/src/test/java/org/jboss/as/quickstarts/helloworld_mutual_ssl_secured/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.helloworld_mutual_ssl_secured; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.File; import java.io.FileInputStream; @@ -43,7 +43,7 @@ import static org.jboss.as.quickstarts.helloworld_mutual_ssl_secured.KeystoreUtil.createTrustStore; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/helloworld-mutual-ssl/pom.xml b/helloworld-mutual-ssl/pom.xml index c70508a943..6e32c14a66 100644 --- a/helloworld-mutual-ssl/pom.xml +++ b/helloworld-mutual-ssl/pom.xml @@ -37,6 +37,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -64,6 +65,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -92,8 +100,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/helloworld-mutual-ssl/src/test/java/org/jboss/as/quickstarts/helloworld_mutual_ssl/BasicRuntimeIT.java b/helloworld-mutual-ssl/src/test/java/org/jboss/as/quickstarts/helloworld_mutual_ssl/BasicRuntimeIT.java index b61c397d70..5fbb167edc 100644 --- a/helloworld-mutual-ssl/src/test/java/org/jboss/as/quickstarts/helloworld_mutual_ssl/BasicRuntimeIT.java +++ b/helloworld-mutual-ssl/src/test/java/org/jboss/as/quickstarts/helloworld_mutual_ssl/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.helloworld_mutual_ssl; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.File; import java.io.FileInputStream; @@ -42,7 +42,7 @@ import org.apache.http.HttpResponse; import static org.jboss.as.quickstarts.helloworld_mutual_ssl.KeyStoreUtils.loadKeyPairFromKeyStore; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/helloworld-rs/pom.xml b/helloworld-rs/pom.xml index 440b88fbd9..c6593d0688 100644 --- a/helloworld-rs/pom.xml +++ b/helloworld-rs/pom.xml @@ -37,6 +37,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -50,6 +51,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -63,8 +71,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/helloworld-rs/src/test/java/org/jboss/as/quickstarts/helloworld/rest/RESTEndPointIT.java b/helloworld-rs/src/test/java/org/jboss/as/quickstarts/helloworld/rest/RESTEndPointIT.java index 91eaffafeb..9e23da4287 100644 --- a/helloworld-rs/src/test/java/org/jboss/as/quickstarts/helloworld/rest/RESTEndPointIT.java +++ b/helloworld-rs/src/test/java/org/jboss/as/quickstarts/helloworld/rest/RESTEndPointIT.java @@ -7,11 +7,11 @@ import jakarta.ws.rs.client.Client; import jakarta.ws.rs.client.ClientBuilder; import jakarta.ws.rs.core.MediaType; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing for a rest endpoint. @@ -33,12 +33,12 @@ private static String getServerHost() { return serverHost; } - @Before + @BeforeEach public void before() { client = ClientBuilder.newClient(); } - @After + @AfterEach public void after() { client.close(); } diff --git a/helloworld-singleton/pom.xml b/helloworld-singleton/pom.xml index 0efcfaa98c..230165dce8 100644 --- a/helloworld-singleton/pom.xml +++ b/helloworld-singleton/pom.xml @@ -50,9 +50,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -65,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -86,8 +92,7 @@ org.junit.jupiter - junit-jupiter-engine - ${version.org.junit.jupiter} + junit-jupiter test diff --git a/helloworld-ws/pom.xml b/helloworld-ws/pom.xml index 21f70b9578..62713243f6 100644 --- a/helloworld-ws/pom.xml +++ b/helloworld-ws/pom.xml @@ -49,8 +49,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - @@ -63,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -77,10 +84,9 @@ - junit - junit + org.junit.jupiter + junit-jupiter test - jar org.wildfly diff --git a/helloworld-ws/src/test/java/org/jboss/as/quickstarts/wshelloworld/ClientIT.java b/helloworld-ws/src/test/java/org/jboss/as/quickstarts/wshelloworld/ClientIT.java index be5674b616..aa77854ccc 100644 --- a/helloworld-ws/src/test/java/org/jboss/as/quickstarts/wshelloworld/ClientIT.java +++ b/helloworld-ws/src/test/java/org/jboss/as/quickstarts/wshelloworld/ClientIT.java @@ -16,7 +16,7 @@ */ package org.jboss.as.quickstarts.wshelloworld; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; import java.net.MalformedURLException; import java.net.URI; @@ -25,9 +25,9 @@ import java.util.ArrayList; import java.util.List; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; /** * Simple set of tests for the HelloWorld Web Service to demonstrate accessing the web service using a client @@ -63,7 +63,7 @@ private static String getServerHost() { private HelloWorldService client; - @BeforeClass + @BeforeAll public static void beforeClass() throws MalformedURLException { URL deploymentUrl = getHTTPEndpoint(); @@ -73,7 +73,7 @@ public static void beforeClass() throws MalformedURLException { ClientIT.deploymentUrl = deploymentUrl; } - @Before + @BeforeEach public void setup() { client = new Client(deploymentUrl); } diff --git a/helloworld/pom.xml b/helloworld/pom.xml index 4406f72f13..94249ff66e 100644 --- a/helloworld/pom.xml +++ b/helloworld/pom.xml @@ -49,6 +49,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -62,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -75,8 +83,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/helloworld/src/test/java/org/jboss/as/quickstarts/helloworld/BasicRuntimeIT.java b/helloworld/src/test/java/org/jboss/as/quickstarts/helloworld/BasicRuntimeIT.java index 33fe371afe..200b2609a1 100644 --- a/helloworld/src/test/java/org/jboss/as/quickstarts/helloworld/BasicRuntimeIT.java +++ b/helloworld/src/test/java/org/jboss/as/quickstarts/helloworld/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.helloworld; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/hibernate/pom.xml b/hibernate/pom.xml index 6a0d4441b8..a18d4ab47f 100644 --- a/hibernate/pom.xml +++ b/hibernate/pom.xml @@ -50,9 +50,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -65,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -139,8 +145,7 @@ org.junit.jupiter - junit-jupiter-engine - ${version.org.junit.jupiter} + junit-jupiter test diff --git a/http-custom-mechanism/pom.xml b/http-custom-mechanism/pom.xml index 266eb7d092..42b06b7b49 100644 --- a/http-custom-mechanism/pom.xml +++ b/http-custom-mechanism/pom.xml @@ -55,6 +55,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -68,6 +69,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + diff --git a/http-custom-mechanism/webapp/pom.xml b/http-custom-mechanism/webapp/pom.xml index 528bb4f0c1..4b5d030c71 100644 --- a/http-custom-mechanism/webapp/pom.xml +++ b/http-custom-mechanism/webapp/pom.xml @@ -50,8 +50,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/http-custom-mechanism/webapp/src/test/java/org/jboss/as/quickstart/http_custom_mechanism/BasicRuntimeIT.java b/http-custom-mechanism/webapp/src/test/java/org/jboss/as/quickstart/http_custom_mechanism/BasicRuntimeIT.java index aec0272a5d..bd2b47dc5d 100644 --- a/http-custom-mechanism/webapp/src/test/java/org/jboss/as/quickstart/http_custom_mechanism/BasicRuntimeIT.java +++ b/http-custom-mechanism/webapp/src/test/java/org/jboss/as/quickstart/http_custom_mechanism/BasicRuntimeIT.java @@ -15,8 +15,8 @@ */ package org.jboss.as.quickstart.http_custom_mechanism; -import org.junit.Before; -import org.junit.Test; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -27,7 +27,7 @@ import java.time.Duration; import java.util.logging.Logger; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. @@ -39,7 +39,7 @@ public class BasicRuntimeIT { private static final String DEFAULT_SERVER_HOST = "http://localhost:8080"; private String serverHost; - @Before + @BeforeEach public void setUp() { serverHost = System.getenv("SERVER_HOST"); if (serverHost == null) { diff --git a/jaxrs-client/pom.xml b/jaxrs-client/pom.xml index e93d6b15a3..79959c1b72 100644 --- a/jaxrs-client/pom.xml +++ b/jaxrs-client/pom.xml @@ -50,10 +50,10 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final 9.37.1 - 5.10.5 ${project.build.directory}/server @@ -71,7 +71,7 @@ org.junit junit-bom - ${version.org.junit} + ${version.bom.junit} pom import diff --git a/jaxrs-jwt/pom.xml b/jaxrs-jwt/pom.xml index dc5bc420e2..b819c0d1de 100644 --- a/jaxrs-jwt/pom.xml +++ b/jaxrs-jwt/pom.xml @@ -49,10 +49,10 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final 10.3.1 - 5.10.5 ${project.build.directory}/server @@ -70,7 +70,7 @@ org.junit junit-bom - ${version.org.junit} + ${version.bom.junit} pom import diff --git a/jaxws-ejb/pom.xml b/jaxws-ejb/pom.xml index 4376673a4d..64c39dca4e 100644 --- a/jaxws-ejb/pom.xml +++ b/jaxws-ejb/pom.xml @@ -49,6 +49,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -62,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -76,8 +84,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/jaxws-ejb/src/test/java/org/jboss/quickstarts/wsejb/ClientIT.java b/jaxws-ejb/src/test/java/org/jboss/quickstarts/wsejb/ClientIT.java index 8e6b02cd99..7851131511 100644 --- a/jaxws-ejb/src/test/java/org/jboss/quickstarts/wsejb/ClientIT.java +++ b/jaxws-ejb/src/test/java/org/jboss/quickstarts/wsejb/ClientIT.java @@ -22,11 +22,11 @@ import java.net.URL; import javax.xml.namespace.QName; import jakarta.xml.ws.Service; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * @author rsearls@redhat.com @@ -60,7 +60,7 @@ private static String getServerHost() { private EJB3RemoteInterface client; - @BeforeClass + @BeforeAll public static void beforeClass() throws MalformedURLException { URL deploymentUrl = getHTTPEndpoint(); @@ -70,7 +70,7 @@ public static void beforeClass() throws MalformedURLException { ClientIT.deploymentUrl = deploymentUrl; } - @Before + @BeforeEach public void setup() { QName serviceName = new QName("http://wsejb.quickstarts.jboss.org/", "EJB3BeanService"); Service service = Service.create(deploymentUrl, serviceName); diff --git a/jaxws-retail/pom.xml b/jaxws-retail/pom.xml index a79d7b0f95..0874f46933 100644 --- a/jaxws-retail/pom.xml +++ b/jaxws-retail/pom.xml @@ -49,6 +49,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final 1.3.1.Final @@ -65,6 +66,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -79,10 +87,9 @@ - junit - junit + org.junit.jupiter + junit-jupiter test - jar org.wildfly diff --git a/jaxws-retail/src/test/java/org/jboss/quickstarts/wsretail/ClientIT.java b/jaxws-retail/src/test/java/org/jboss/quickstarts/wsretail/ClientIT.java index 1e891dc230..e3da1b222d 100644 --- a/jaxws-retail/src/test/java/org/jboss/quickstarts/wsretail/ClientIT.java +++ b/jaxws-retail/src/test/java/org/jboss/quickstarts/wsretail/ClientIT.java @@ -11,11 +11,11 @@ import org.jboss.quickstarts.ws.jaxws.samples.retail.profile.DiscountRequest; import org.jboss.quickstarts.ws.jaxws.samples.retail.profile.DiscountResponse; import org.jboss.quickstarts.ws.jaxws.samples.retail.profile.ProfileMgmt; -import org.junit.Test; -import org.junit.Before; -import org.junit.BeforeClass; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.BeforeAll; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; public class ClientIT { /** @@ -46,14 +46,14 @@ private static String getServerHost() { private ProfileMgmt client; - @BeforeClass + @BeforeAll public static void beforeClass() throws MalformedURLException { URL deploymentUrl = getHTTPEndpoint(); // Set the deployment url ClientIT.deploymentUrl = deploymentUrl; } - @Before + @BeforeEach public void setup() { QName serviceName = new QName("http://org.jboss.ws/samples/retail/profile", "ProfileMgmtService"); Service service = Service.create(deploymentUrl, serviceName); diff --git a/jsonp/pom.xml b/jsonp/pom.xml index 2831551157..d009e92451 100644 --- a/jsonp/pom.xml +++ b/jsonp/pom.xml @@ -49,6 +49,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -62,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -127,8 +135,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/jsonp/src/test/java/org/jboss/as/quickstarts/jsonp/BasicRuntimeIT.java b/jsonp/src/test/java/org/jboss/as/quickstarts/jsonp/BasicRuntimeIT.java index 5af4131fd3..0053f16711 100644 --- a/jsonp/src/test/java/org/jboss/as/quickstarts/jsonp/BasicRuntimeIT.java +++ b/jsonp/src/test/java/org/jboss/as/quickstarts/jsonp/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.jsonp; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/jta-crash-rec/pom.xml b/jta-crash-rec/pom.xml index 1f253a1f4b..e34fe557ab 100644 --- a/jta-crash-rec/pom.xml +++ b/jta-crash-rec/pom.xml @@ -49,6 +49,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -62,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -119,8 +127,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/jta-crash-rec/src/test/java/org/jboss/as/quickstarts/xa/BasicRuntimeIT.java b/jta-crash-rec/src/test/java/org/jboss/as/quickstarts/xa/BasicRuntimeIT.java index 54d32b9303..eb7621e109 100644 --- a/jta-crash-rec/src/test/java/org/jboss/as/quickstarts/xa/BasicRuntimeIT.java +++ b/jta-crash-rec/src/test/java/org/jboss/as/quickstarts/xa/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.xa; - import org.junit.Test; + import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; - import static org.junit.Assert.assertEquals; + import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/jts/application-component-1/pom.xml b/jts/application-component-1/pom.xml index 12c1c674d2..c7ff7756d1 100644 --- a/jts/application-component-1/pom.xml +++ b/jts/application-component-1/pom.xml @@ -93,8 +93,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/jts/application-component-1/src/test/java/org/jboss/as/quickstarts/cmt/jts/BasicRuntimeIT.java b/jts/application-component-1/src/test/java/org/jboss/as/quickstarts/cmt/jts/BasicRuntimeIT.java index e4f1426f78..9de0946764 100644 --- a/jts/application-component-1/src/test/java/org/jboss/as/quickstarts/cmt/jts/BasicRuntimeIT.java +++ b/jts/application-component-1/src/test/java/org/jboss/as/quickstarts/cmt/jts/BasicRuntimeIT.java @@ -15,8 +15,8 @@ */ package org.jboss.as.quickstarts.cmt.jts; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.IOException; import java.net.CookieManager; @@ -35,7 +35,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.junit.Test; +import org.junit.jupiter.api.Test; public class BasicRuntimeIT { @@ -136,7 +136,7 @@ private HttpResponse submitCustomerForm(HttpClient client, String name) String body = getResponse.body(); // JSF requires the ViewState token from the hidden form field to accept a POST submission Matcher viewStateMatcher = Pattern.compile("name=\"jakarta\\.faces\\.ViewState\"[^>]*value=\"([^\"]+)\"").matcher(body); - assertTrue("ViewState not found in response", viewStateMatcher.find()); + assertTrue(viewStateMatcher.find(), "ViewState not found in response"); String viewState = viewStateMatcher.group(1); HttpRequest postRequest = HttpRequest.newBuilder(formUri) @@ -156,8 +156,7 @@ private void waitForMessagesReceived(long expected, long timeoutMs) throws IOExc if (getMessagesReceived() == expected) return; Thread.sleep(500); } - assertEquals("Timed out waiting for messages received to reach " + expected, - expected, getMessagesReceived()); + assertEquals(expected, getMessagesReceived(), "Timed out waiting for messages received to reach " + expected); } private void assertMessagesStayAt(long expected, long durationMs) throws IOException, InterruptedException { @@ -178,8 +177,7 @@ private long getMessagesReceived() throws IOException, InterruptedException { .GET() .build(); HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString()); - assertEquals("Message count request failed with status " + response.statusCode(), - 200, response.statusCode()); + assertEquals(200, response.statusCode(), "Message count request failed with status " + response.statusCode()); return Long.parseLong(response.body().trim()); } diff --git a/jts/pom.xml b/jts/pom.xml index acc67e927a..4a7103fbf6 100644 --- a/jts/pom.xml +++ b/jts/pom.xml @@ -57,6 +57,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -70,6 +71,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + ${project.groupId} diff --git a/kitchensink/pom.xml b/kitchensink/pom.xml index 9e0ec1da69..4f2b0174fb 100644 --- a/kitchensink/pom.xml +++ b/kitchensink/pom.xml @@ -49,6 +49,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -62,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -80,8 +88,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/kitchensink/src/test/java/org/jboss/as/quickstarts/kitchensink/test/BasicRuntimeIT.java b/kitchensink/src/test/java/org/jboss/as/quickstarts/kitchensink/test/BasicRuntimeIT.java index bc264ccfbd..5592ffa0b1 100644 --- a/kitchensink/src/test/java/org/jboss/as/quickstarts/kitchensink/test/BasicRuntimeIT.java +++ b/kitchensink/src/test/java/org/jboss/as/quickstarts/kitchensink/test/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.kitchensink.test; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/kitchensink/src/test/java/org/jboss/as/quickstarts/kitchensink/test/MemberRegistrationIT.java b/kitchensink/src/test/java/org/jboss/as/quickstarts/kitchensink/test/MemberRegistrationIT.java index f6cec844c0..8c05765b38 100644 --- a/kitchensink/src/test/java/org/jboss/as/quickstarts/kitchensink/test/MemberRegistrationIT.java +++ b/kitchensink/src/test/java/org/jboss/as/quickstarts/kitchensink/test/MemberRegistrationIT.java @@ -19,8 +19,8 @@ import jakarta.json.Json; import jakarta.json.JsonObject; import org.jboss.as.quickstarts.kitchensink.model.Member; -import org.junit.Assert; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; import java.net.URI; import java.net.http.HttpClient; @@ -53,7 +53,7 @@ public void testRegister() throws Exception { .POST(HttpRequest.BodyPublishers.ofString(json.toString())) .build(); HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()); - Assert.assertEquals(200, response.statusCode()); - Assert.assertEquals("", response.body().toString() ); + Assertions.assertEquals(200, response.statusCode()); + Assertions.assertEquals("", response.body().toString() ); } } diff --git a/logging/pom.xml b/logging/pom.xml index 3cd4bfb2a7..f614e914f8 100644 --- a/logging/pom.xml +++ b/logging/pom.xml @@ -49,9 +49,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.10.5 ${project.build.directory}/server @@ -69,7 +68,7 @@ org.junit junit-bom - ${version.org.junit} + ${version.bom.junit} pom import diff --git a/mail/pom.xml b/mail/pom.xml index 351e4e4d7a..10d2b5bc40 100644 --- a/mail/pom.xml +++ b/mail/pom.xml @@ -50,6 +50,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final 4.21.0 @@ -65,6 +66,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -94,8 +102,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/mail/src/test/java/org/jboss/as/quickstarts/mail/BasicRuntimeIT.java b/mail/src/test/java/org/jboss/as/quickstarts/mail/BasicRuntimeIT.java index fc6fdde77c..09ddb13f1d 100644 --- a/mail/src/test/java/org/jboss/as/quickstarts/mail/BasicRuntimeIT.java +++ b/mail/src/test/java/org/jboss/as/quickstarts/mail/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.mail; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/mail/src/test/java/org/jboss/as/quickstarts/mail/MailTestCaseIT.java b/mail/src/test/java/org/jboss/as/quickstarts/mail/MailTestCaseIT.java index 54ff732aed..9bdfa92cb7 100644 --- a/mail/src/test/java/org/jboss/as/quickstarts/mail/MailTestCaseIT.java +++ b/mail/src/test/java/org/jboss/as/quickstarts/mail/MailTestCaseIT.java @@ -8,9 +8,9 @@ import org.htmlunit.html.HtmlPage; import org.htmlunit.html.HtmlSubmitInput; import org.htmlunit.html.HtmlTextArea; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; public class MailTestCaseIT { @@ -18,7 +18,7 @@ public class MailTestCaseIT { private String serverHost; - @Before + @BeforeEach public void testSetup() { serverHost = System.getenv("SERVER_HOST"); if (serverHost == null) { @@ -61,7 +61,7 @@ private void sendEmailBySMTP(WebClient webClient, HtmlPage mailHomePage) throws webClient.waitForBackgroundJavaScript(30 * 1000); HtmlElement message = mailHomePage.getFirstByXPath("//ul[@id='smtp_messages']/li"); - Assert.assertEquals("Unexpected result messages after sending an email via SMTP.", "Email sent to user02@mail.local", message.asNormalizedText()); + Assertions.assertEquals("Email sent to user02@mail.local", message.asNormalizedText(), "Unexpected result messages after sending an email via SMTP."); } private void retrieveEmailByPOP3(WebClient webClient, HtmlPage mailHomePage) throws IOException { @@ -76,9 +76,9 @@ private void retrieveEmailByPOP3(WebClient webClient, HtmlPage mailHomePage) thr webClient.waitForBackgroundJavaScript(30 * 1000); HtmlTextArea emails = mailHomePage.getHtmlElementById("pop3_emails"); - Assert.assertTrue("Expected From not found: " + emails.getText(), emails.getText().contains("From : user01@mail.local")); - Assert.assertTrue("Expected Subject not found: " + emails.getText(), emails.getText().contains("Subject : This is a test")); - Assert.assertTrue("Expected Body not found : " + emails.getText(), emails.getText().contains("Body : Hello user02, I've sent an email.")); + Assertions.assertTrue(emails.getText().contains("From : user01@mail.local"), "Expected From not found: " + emails.getText()); + Assertions.assertTrue(emails.getText().contains("Subject : This is a test"), "Expected Subject not found: " + emails.getText()); + Assertions.assertTrue(emails.getText().contains("Body : Hello user02, I've sent an email."), "Expected Body not found : " + emails.getText()); } private void retrieveEmailByIMAP(WebClient webClient, HtmlPage mailHomePage) throws IOException { @@ -88,9 +88,9 @@ private void retrieveEmailByIMAP(WebClient webClient, HtmlPage mailHomePage) thr webClient.waitForBackgroundJavaScript(30 * 1000); HtmlTextArea emails = mailHomePage.getHtmlElementById("imap_emails"); - Assert.assertNotNull("IMAP No messages found.", emails.getText()); - Assert.assertTrue("Expected From not found: " + emails.getText(), emails.getText().contains("From : user01@mail.local")); - Assert.assertTrue("Expected Subject not found: " + emails.getText(), emails.getText().contains("Subject : This is a test")); - Assert.assertTrue("Expected Body not found : " + emails.getText(), emails.getText().contains("Body : Hello user02, I've sent an email.")); + Assertions.assertNotNull(emails.getText(), "IMAP No messages found."); + Assertions.assertTrue(emails.getText().contains("From : user01@mail.local"), "Expected From not found: " + emails.getText()); + Assertions.assertTrue(emails.getText().contains("Subject : This is a test"), "Expected Subject not found: " + emails.getText()); + Assertions.assertTrue(emails.getText().contains("Body : Hello user02, I've sent an email."), "Expected Body not found : " + emails.getText()); } } diff --git a/messaging-clustering-singleton/pom.xml b/messaging-clustering-singleton/pom.xml index de1224de21..baf0718b9d 100644 --- a/messaging-clustering-singleton/pom.xml +++ b/messaging-clustering-singleton/pom.xml @@ -49,9 +49,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -65,9 +64,11 @@ import - org.junit.jupiter - junit-jupiter-engine - ${version.junit-jupiter-engine} + org.junit + junit-bom + ${version.bom.junit} + pom + import @@ -102,7 +103,7 @@ org.junit.jupiter - junit-jupiter-engine + junit-jupiter test diff --git a/micrometer/pom.xml b/micrometer/pom.xml index 78735545b5..854d85919e 100644 --- a/micrometer/pom.xml +++ b/micrometer/pom.xml @@ -28,6 +28,7 @@ ${version.server} ${version.server} + 6.1.3 6.0.2.Final @@ -41,6 +42,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + org.wildfly.bom @@ -84,8 +92,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/BasicRuntimeIT.java b/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/BasicRuntimeIT.java index 27a18f9c79..08d911a51f 100644 --- a/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/BasicRuntimeIT.java +++ b/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.wildfly.quickstarts.micrometer; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import org.junit.Test; +import org.junit.jupiter.api.Test; public class BasicRuntimeIT { private static final String DEFAULT_SERVER_HOST = "http://localhost:8080"; diff --git a/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/MicrometerIT.java b/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/MicrometerIT.java index 54d5ba845b..01a9f567a6 100644 --- a/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/MicrometerIT.java +++ b/micrometer/src/test/java/org/wildfly/quickstarts/micrometer/MicrometerIT.java @@ -15,7 +15,7 @@ */ package org.wildfly.quickstarts.micrometer; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.IOException; import java.net.URI; @@ -24,7 +24,7 @@ import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import org.junit.Test; +import org.junit.jupiter.api.Test; public class MicrometerIT { public static final int MAX_NUMBER = 15; diff --git a/microprofile-config/pom.xml b/microprofile-config/pom.xml index d0c014aebe..6f4ae90ee5 100644 --- a/microprofile-config/pom.xml +++ b/microprofile-config/pom.xml @@ -26,6 +26,7 @@ ${version.server} ${version.server} + 6.1.3 6.0.2.Final @@ -47,6 +48,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -72,10 +80,9 @@ - junit - junit + org.junit.jupiter + junit-jupiter test - jar org.jboss.resteasy diff --git a/microprofile-config/src/test/java/org/wildfly/quickstarts/microprofile/config/BasicRuntimeIT.java b/microprofile-config/src/test/java/org/wildfly/quickstarts/microprofile/config/BasicRuntimeIT.java index 052109d568..fca8919e30 100644 --- a/microprofile-config/src/test/java/org/wildfly/quickstarts/microprofile/config/BasicRuntimeIT.java +++ b/microprofile-config/src/test/java/org/wildfly/quickstarts/microprofile/config/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.wildfly.quickstarts.microprofile.config; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/microprofile-fault-tolerance/pom.xml b/microprofile-fault-tolerance/pom.xml index 9877edec08..7cc201ff23 100644 --- a/microprofile-fault-tolerance/pom.xml +++ b/microprofile-fault-tolerance/pom.xml @@ -59,6 +59,7 @@ ${version.server} ${version.server} + 6.1.3 6.0.2.Final 4.3.3 @@ -82,6 +83,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -108,8 +116,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/microprofile-fault-tolerance/src/test/java/org/wildfly/quickstarts/microprofile/faulttolerance/CoffeeResourceIT.java b/microprofile-fault-tolerance/src/test/java/org/wildfly/quickstarts/microprofile/faulttolerance/CoffeeResourceIT.java index 33c1e9559e..6ed8b2eab2 100644 --- a/microprofile-fault-tolerance/src/test/java/org/wildfly/quickstarts/microprofile/faulttolerance/CoffeeResourceIT.java +++ b/microprofile-fault-tolerance/src/test/java/org/wildfly/quickstarts/microprofile/faulttolerance/CoffeeResourceIT.java @@ -28,10 +28,10 @@ import org.jboss.resteasy.plugins.providers.RegisterBuiltin; import org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider; import org.jboss.resteasy.spi.ResteasyProviderFactory; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; /** * Simple integration test for Coffee resource that is guarded by MicroProfile Fault Tolerance annotations. @@ -50,12 +50,12 @@ public class CoffeeResourceIT { instance.registerProvider(ResteasyJackson2Provider.class); } - @Before + @BeforeEach public void before() { client = ClientBuilder.newClient(); } - @After + @AfterEach public void after() { client.close(); } @@ -66,11 +66,11 @@ public void testCoffeeList() { this.resetCounter(); try (Response response = this.getResponse("/coffee")) { - Assert.assertEquals(200, response.getStatus()); + Assertions.assertEquals(200, response.getStatus()); List entity = response.readEntity(new GenericType>() {}); - Assert.assertNotNull(entity); - Assert.assertEquals(3, entity.size()); + Assertions.assertNotNull(entity); + Assertions.assertEquals(3, entity.size()); } } @@ -80,10 +80,10 @@ public void testCoffeeListFailure() { this.resetCounter(); try (Response response = this.getResponse("/coffee")) { - Assert.assertEquals(500, response.getStatus()); + Assertions.assertEquals(500, response.getStatus()); } - Assert.assertEquals(5, this.getCounter()); + Assertions.assertEquals(5, this.getCounter()); } @Test @@ -91,11 +91,11 @@ public void testCoffeeDetail() { this.setFailRatio(0f); try (Response response = this.getResponse("/coffee/1")) { - Assert.assertEquals(200, response.getStatus()); + Assertions.assertEquals(200, response.getStatus()); Coffee entity = response.readEntity(new GenericType() {}); - Assert.assertNotNull(entity); - Assert.assertEquals("Colombia", entity.countryOfOrigin); + Assertions.assertNotNull(entity); + Assertions.assertEquals("Colombia", entity.countryOfOrigin); } } @@ -104,26 +104,26 @@ public void testCoffeeDetailFailure() { this.setFailRatio(1f); try (Response response = this.getResponse("/coffee/1")) { - Assert.assertEquals(500, response.getStatus()); + Assertions.assertEquals(500, response.getStatus()); } } private long getCounter() { try (Response response = this.getResponse("/coffee/getCounter")) { - Assert.assertEquals(200, response.getStatus()); + Assertions.assertEquals(200, response.getStatus()); return response.readEntity(Long.class); } } private void setFailRatio(float failRatio) { try (Response response = this.getResponse("/coffee/setFailRatio/" + failRatio)) { - Assert.assertEquals(204, response.getStatus()); + Assertions.assertEquals(204, response.getStatus()); } } private void resetCounter() { try (Response response = this.getResponse("/coffee/resetCounter")) { - Assert.assertEquals(204, response.getStatus()); + Assertions.assertEquals(204, response.getStatus()); } } @@ -138,12 +138,12 @@ public void testCoffeeRecommendations() { setMaxDelay(250); try (Response response = this.getResponse("/coffee/1/recommendations")) { - Assert.assertEquals(200, response.getStatus()); + Assertions.assertEquals(200, response.getStatus()); ArrayList ordersList = response.readEntity(new GenericType>() {}); - Assert.assertNotNull(ordersList); - Assert.assertEquals(2, ordersList.size()); - Assert.assertNotEquals(1, ordersList.get(0).getId()); - Assert.assertNotEquals(1, ordersList.get(1).getId()); + Assertions.assertNotNull(ordersList); + Assertions.assertEquals(2, ordersList.size()); + Assertions.assertNotEquals(1, ordersList.get(0).getId()); + Assertions.assertNotEquals(1, ordersList.get(1).getId()); } } @@ -158,24 +158,24 @@ public void testCoffeeRecommendationsSafeChoice() { setMaxDelay(500); try (Response response = this.getResponse("/coffee/1/recommendations")) { - Assert.assertEquals(200, response.getStatus()); + Assertions.assertEquals(200, response.getStatus()); ArrayList ordersList = response.readEntity(new GenericType>() {}); - Assert.assertNotNull(ordersList); - Assert.assertEquals(1, ordersList.size()); - Assert.assertEquals(1, ordersList.get(0).getId()); + Assertions.assertNotNull(ordersList); + Assertions.assertEquals(1, ordersList.size()); + Assertions.assertEquals(1, ordersList.get(0).getId()); } } private void setMaxDelay(int maxDelay) { try (Response response = this.getResponse("/coffee/setMaxDelay/" + maxDelay)) { - Assert.assertEquals(204, response.getStatus()); + Assertions.assertEquals(204, response.getStatus()); } } private void setMinDelay(int minDelay) { try (Response response = this.getResponse("/coffee/setMinDelay/" + minDelay)) { - Assert.assertEquals(204, response.getStatus()); + Assertions.assertEquals(204, response.getStatus()); } } diff --git a/microprofile-health/pom.xml b/microprofile-health/pom.xml index 697ad6de74..c89fb01aea 100644 --- a/microprofile-health/pom.xml +++ b/microprofile-health/pom.xml @@ -25,6 +25,7 @@ ${version.server} ${version.server} + 6.1.3 6.0.2.Final @@ -38,6 +39,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + org.wildfly.bom wildfly-expansion @@ -71,8 +79,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/microprofile-health/src/test/java/org/wildfly/quickstarts/microprofile/health/BasicRuntimeIT.java b/microprofile-health/src/test/java/org/wildfly/quickstarts/microprofile/health/BasicRuntimeIT.java index 1a4ce6074c..10f7e7881e 100644 --- a/microprofile-health/src/test/java/org/wildfly/quickstarts/microprofile/health/BasicRuntimeIT.java +++ b/microprofile-health/src/test/java/org/wildfly/quickstarts/microprofile/health/BasicRuntimeIT.java @@ -1,6 +1,6 @@ package org.wildfly.quickstarts.microprofile.health; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -10,7 +10,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; public class BasicRuntimeIT { private static final String DEFAULT_SERVER_HOST = "http://localhost:8080"; diff --git a/microprofile-health/src/test/java/org/wildfly/quickstarts/microprofile/health/MicroProfileHealthIT.java b/microprofile-health/src/test/java/org/wildfly/quickstarts/microprofile/health/MicroProfileHealthIT.java index 6eaa3e5eda..f64cb8875c 100644 --- a/microprofile-health/src/test/java/org/wildfly/quickstarts/microprofile/health/MicroProfileHealthIT.java +++ b/microprofile-health/src/test/java/org/wildfly/quickstarts/microprofile/health/MicroProfileHealthIT.java @@ -20,10 +20,10 @@ import jakarta.ws.rs.client.ClientBuilder; import jakarta.ws.rs.core.Response; import org.jboss.dmr.ModelNode; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; import java.net.MalformedURLException; import java.net.URI; @@ -42,7 +42,7 @@ public class MicroProfileHealthIT { private URL managementURL; private Client client; - @Before + @BeforeEach public void before() throws MalformedURLException { String managementHost = getConfigValue("server.management.host").orElse("http://localhost:9990"); managementURL = URI.create(managementHost).toURL(); @@ -57,7 +57,7 @@ private Optional getConfigValue(String key) { return Optional.ofNullable(value); } - @After + @AfterEach public void after() { if (client != null) { client.close(); @@ -75,25 +75,25 @@ public void testLivenessContents() { .request() .get(); - Assert.assertEquals(200, response.getStatus()); + Assertions.assertEquals(200, response.getStatus()); ModelNode json = ModelNode.fromJSONString(response.readEntity(String.class)); - Assert.assertEquals("UP", json.get("status").asString()); + Assertions.assertEquals("UP", json.get("status").asString()); List checks = json.get("checks").asList(); - Assert.assertEquals(2, checks.size()); + Assertions.assertEquals(2, checks.size()); for (ModelNode check : checks) { String name = check.get("name").asString(); - Assert.assertTrue(name.equals("Simple health check") || name.equals("Health check with data")); + Assertions.assertTrue(name.equals("Simple health check") || name.equals("Health check with data")); - Assert.assertEquals("UP", check.get("status").asString()); + Assertions.assertEquals("UP", check.get("status").asString()); if (name.equals("Health check with data")) { ModelNode data = check.get("data"); - Assert.assertTrue(data.get("bar") != null && data.get("bar").asString().equals("barValue")); - Assert.assertTrue(data.get("foo") != null && data.get("foo").asString().equals("fooValue")); + Assertions.assertTrue(data.get("bar") != null && data.get("bar").asString().equals("barValue")); + Assertions.assertTrue(data.get("foo") != null && data.get("foo").asString().equals("fooValue")); } } } @@ -110,10 +110,10 @@ public void testReadinessContents() { .request() .get(); - Assert.assertEquals(200, response.getStatus()); + Assertions.assertEquals(200, response.getStatus()); ModelNode json = ModelNode.fromJSONString(response.readEntity(String.class)); - Assert.assertEquals("UP", json.get("status").asString()); + Assertions.assertEquals("UP", json.get("status").asString()); List checks = json.get("checks").asList(); @@ -122,12 +122,12 @@ public void testReadinessContents() { for (int i = 0; i < checks.size(); i++) { ModelNode check = checks.get(i); if (check.get("name").asString().equals("Database connection health check")) { - Assert.assertEquals("UP", check.get("status").asString()); + Assertions.assertEquals("UP", check.get("status").asString()); checkIncluded = true; } } - Assert.assertTrue("The user defined check is not included in the readiness response", checkIncluded); + Assertions.assertTrue(checkIncluded, "The user defined check is not included in the readiness response"); } } diff --git a/microprofile-jwt/pom.xml b/microprofile-jwt/pom.xml index 3dff36789c..761634e0be 100644 --- a/microprofile-jwt/pom.xml +++ b/microprofile-jwt/pom.xml @@ -50,6 +50,7 @@ ${version.server} ${version.server} + 6.1.3 6.0.2.Final 10.3.1 @@ -65,6 +66,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + org.wildfly.bom @@ -109,8 +117,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/microprofile-jwt/src/test/java/org/wildfly/quickstarts/mpjwt/BasicRuntimeIT.java b/microprofile-jwt/src/test/java/org/wildfly/quickstarts/mpjwt/BasicRuntimeIT.java index 1260ae330e..d472914cff 100644 --- a/microprofile-jwt/src/test/java/org/wildfly/quickstarts/mpjwt/BasicRuntimeIT.java +++ b/microprofile-jwt/src/test/java/org/wildfly/quickstarts/mpjwt/BasicRuntimeIT.java @@ -4,12 +4,12 @@ import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URISyntaxException; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; import static org.wildfly.quickstarts.mpjwt.TestUtils.HELLO_WORLD; import static org.wildfly.quickstarts.mpjwt.TestUtils.ROOT_PATH; import static org.wildfly.quickstarts.mpjwt.TestUtils.getServerHost; @@ -22,7 +22,7 @@ public void testHTTPEndpointIsAvailable() throws IOException, InterruptedExcepti HttpGet httpGet = new HttpGet(getServerHost() + ROOT_PATH + HELLO_WORLD); CloseableHttpResponse httpResponse = httpClient.execute(httpGet); - assertEquals("Successful call", 200, httpResponse.getStatusLine().getStatusCode()); + assertEquals(200, httpResponse.getStatusLine().getStatusCode(), "Successful call"); httpResponse.close(); diff --git a/microprofile-jwt/src/test/java/org/wildfly/quickstarts/mpjwt/JWTClientIT.java b/microprofile-jwt/src/test/java/org/wildfly/quickstarts/mpjwt/JWTClientIT.java index 95d412b5cd..27ab6b85a3 100644 --- a/microprofile-jwt/src/test/java/org/wildfly/quickstarts/mpjwt/JWTClientIT.java +++ b/microprofile-jwt/src/test/java/org/wildfly/quickstarts/mpjwt/JWTClientIT.java @@ -18,8 +18,8 @@ package org.wildfly.quickstarts.mpjwt; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; import static org.wildfly.quickstarts.mpjwt.TestUtils.HELLO_WORLD; import static org.wildfly.quickstarts.mpjwt.TestUtils.ROOT_PATH; import static org.wildfly.quickstarts.mpjwt.TestUtils.getServerHost; @@ -29,7 +29,7 @@ import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.util.EntityUtils; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** @@ -63,9 +63,9 @@ public void testHelloWorld() throws Exception { HttpGet httpGet = new HttpGet(getServerHost() + ROOT_PATH + HELLO_WORLD); CloseableHttpResponse httpResponse = httpClient.execute(httpGet); - assertEquals("Successful call", 200, httpResponse.getStatusLine().getStatusCode()); + assertEquals(200, httpResponse.getStatusLine().getStatusCode(), "Successful call"); String body = EntityUtils.toString(httpResponse.getEntity()); - assertTrue("Call was anonymous", body.contains(ANONYMOUS)); + assertTrue(body.contains(ANONYMOUS), "Call was anonymous"); httpResponse.close(); } @@ -79,9 +79,9 @@ public void testAuthenticated() throws Exception { CloseableHttpResponse httpResponse = httpClient.execute(httpGet); - assertEquals("Successful call", 200, httpResponse.getStatusLine().getStatusCode()); + assertEquals(200, httpResponse.getStatusLine().getStatusCode(), "Successful call"); String body = EntityUtils.toString(httpResponse.getEntity()); - assertTrue("Call was authenticated", body.contains(PRINCIPAL_NAME)); + assertTrue(body.contains(PRINCIPAL_NAME), "Call was authenticated"); httpResponse.close(); } @@ -91,7 +91,7 @@ public void testAuthorizationRequired() throws Exception { HttpGet httpGet = new HttpGet(getServerHost() + ROOT_PATH + SUBSCRIPTION); CloseableHttpResponse httpResponse = httpClient.execute(httpGet); - assertEquals("Authorization required", 403, httpResponse.getStatusLine().getStatusCode()); + assertEquals(403, httpResponse.getStatusLine().getStatusCode(), "Authorization required"); httpResponse.close(); } @@ -105,9 +105,9 @@ public void testAuthorized() throws Exception { CloseableHttpResponse httpResponse = httpClient.execute(httpGet); - assertEquals("Successful call", 200, httpResponse.getStatusLine().getStatusCode()); + assertEquals(200, httpResponse.getStatusLine().getStatusCode(), "Successful call"); String body = EntityUtils.toString(httpResponse.getEntity()); - assertTrue("Call was authenticated", body.contains(PRINCIPAL_NAME)); + assertTrue(body.contains(PRINCIPAL_NAME), "Call was authenticated"); httpResponse.close(); } @@ -121,7 +121,7 @@ public void testMissingRole() throws Exception { CloseableHttpResponse httpResponse = httpClient.execute(httpGet); - assertEquals("Authorization Required", 403, httpResponse.getStatusLine().getStatusCode()); + assertEquals(403, httpResponse.getStatusLine().getStatusCode(), "Authorization Required"); httpResponse.close(); } @@ -135,10 +135,10 @@ public void testClaimAccess() throws Exception { CloseableHttpResponse httpResponse = httpClient.execute(httpGet); - assertEquals("Successful call", 200, httpResponse.getStatusLine().getStatusCode()); + assertEquals(200, httpResponse.getStatusLine().getStatusCode(), "Successful call"); String body = EntityUtils.toString(httpResponse.getEntity()); - assertTrue("Call was authenticated", body.contains("Happy Birthday") || - body.contains("days until your next birthday")); + assertTrue(body.contains("Happy Birthday") || + body.contains("days until your next birthday"), "Call was authenticated"); httpResponse.close(); } diff --git a/microprofile-lra/pom.xml b/microprofile-lra/pom.xml index dfc75d1a03..26ec623c66 100644 --- a/microprofile-lra/pom.xml +++ b/microprofile-lra/pom.xml @@ -25,6 +25,7 @@ ${version.server} ${version.server} + 6.1.3 6.0.2.Final @@ -37,6 +38,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + org.wildfly.bom wildfly-expansion @@ -71,8 +79,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/microprofile-lra/src/test/java/org/wildfly/quickstarts/microprofile/lra/BasicRuntimeIT.java b/microprofile-lra/src/test/java/org/wildfly/quickstarts/microprofile/lra/BasicRuntimeIT.java index 4c0124cd32..325066c744 100644 --- a/microprofile-lra/src/test/java/org/wildfly/quickstarts/microprofile/lra/BasicRuntimeIT.java +++ b/microprofile-lra/src/test/java/org/wildfly/quickstarts/microprofile/lra/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.wildfly.quickstarts.microprofile.lra; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/microprofile-lra/src/test/java/org/wildfly/quickstarts/microprofile/lra/MicroProfileLRAIT.java b/microprofile-lra/src/test/java/org/wildfly/quickstarts/microprofile/lra/MicroProfileLRAIT.java index e85873aa8d..f82e76d62c 100644 --- a/microprofile-lra/src/test/java/org/wildfly/quickstarts/microprofile/lra/MicroProfileLRAIT.java +++ b/microprofile-lra/src/test/java/org/wildfly/quickstarts/microprofile/lra/MicroProfileLRAIT.java @@ -20,26 +20,26 @@ import jakarta.ws.rs.client.ClientBuilder; import jakarta.ws.rs.client.WebTarget; import jakarta.ws.rs.core.Response; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; import java.util.function.Function; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNull; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; import static org.wildfly.quickstarts.microprofile.lra.TestUtils.getServerHost; public class MicroProfileLRAIT { private Client client; - @Before + @BeforeEach public void before() { client = ClientBuilder.newClient(); } - @After + @AfterEach public void after() { client.close(); } diff --git a/microprofile-openapi/pom.xml b/microprofile-openapi/pom.xml index 82ef7beb89..2120607ddb 100644 --- a/microprofile-openapi/pom.xml +++ b/microprofile-openapi/pom.xml @@ -27,6 +27,7 @@ ${version.server} ${version.server} + 6.1.3 6.0.2.Final @@ -40,6 +41,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + org.wildfly.bom wildfly-expansion @@ -63,8 +71,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/microprofile-openapi/src/test/java/org/wildfly/quickstart/microprofile/openapi/BasicRuntimeIT.java b/microprofile-openapi/src/test/java/org/wildfly/quickstart/microprofile/openapi/BasicRuntimeIT.java index 2f2e62c4ae..44d570ed67 100644 --- a/microprofile-openapi/src/test/java/org/wildfly/quickstart/microprofile/openapi/BasicRuntimeIT.java +++ b/microprofile-openapi/src/test/java/org/wildfly/quickstart/microprofile/openapi/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.wildfly.quickstart.microprofile.openapi; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/microprofile-openapi/src/test/java/org/wildfly/quickstart/microprofile/openapi/OpenAPIContextIT.java b/microprofile-openapi/src/test/java/org/wildfly/quickstart/microprofile/openapi/OpenAPIContextIT.java index 3f30516417..2d01e72fb5 100644 --- a/microprofile-openapi/src/test/java/org/wildfly/quickstart/microprofile/openapi/OpenAPIContextIT.java +++ b/microprofile-openapi/src/test/java/org/wildfly/quickstart/microprofile/openapi/OpenAPIContextIT.java @@ -4,8 +4,8 @@ */ package org.wildfly.quickstart.microprofile.openapi; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.IOException; import java.net.URI; @@ -16,7 +16,7 @@ import java.time.Duration; import java.util.Arrays; -import org.junit.Test; +import org.junit.jupiter.api.Test; /** * Tests that the /openapi context is available. @@ -46,10 +46,10 @@ public void testOpenAPIContextIsAvailable() throws IOException, InterruptedExcep .connectTimeout(Duration.ofMinutes(1)) .build(); final HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString()); - assertEquals("/openapi context is not available", 200, response.statusCode()); + assertEquals(200, response.statusCode(), "/openapi context is not available"); String[] bodyLines = response.body().split("\n"); - assertTrue("Document does not contain \"openapi:\" field", Arrays.stream(bodyLines).anyMatch(line -> line.startsWith("openapi:"))); + assertTrue(Arrays.stream(bodyLines).anyMatch(line -> line.startsWith("openapi:")), "Document does not contain \"openapi:\" field"); } } diff --git a/microprofile-reactive-messaging-kafka/pom.xml b/microprofile-reactive-messaging-kafka/pom.xml index b0d63f986b..1bf9037fa5 100644 --- a/microprofile-reactive-messaging-kafka/pom.xml +++ b/microprofile-reactive-messaging-kafka/pom.xml @@ -42,6 +42,7 @@ ${version.server} ${version.server} + 6.1.3 6.0.2.Final @@ -63,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -139,8 +147,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/microprofile-reactive-messaging-kafka/src/test/java/org/wildfly/quickstarts/microprofile/reactive/messaging/test/BasicRuntimeIT.java b/microprofile-reactive-messaging-kafka/src/test/java/org/wildfly/quickstarts/microprofile/reactive/messaging/test/BasicRuntimeIT.java index 7aff4b1357..15f7ccc9bb 100644 --- a/microprofile-reactive-messaging-kafka/src/test/java/org/wildfly/quickstarts/microprofile/reactive/messaging/test/BasicRuntimeIT.java +++ b/microprofile-reactive-messaging-kafka/src/test/java/org/wildfly/quickstarts/microprofile/reactive/messaging/test/BasicRuntimeIT.java @@ -4,11 +4,11 @@ import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; import static org.wildfly.quickstarts.microprofile.reactive.messaging.test.TestUtils.getServerHost; public class BasicRuntimeIT { @@ -19,7 +19,7 @@ public void testHTTPEndpointIsAvailable() throws IOException { HttpGet httpGet = new HttpGet(getServerHost()); CloseableHttpResponse httpResponse = httpClient.execute(httpGet); - assertEquals("Successful call", 200, httpResponse.getStatusLine().getStatusCode()); + assertEquals(200, httpResponse.getStatusLine().getStatusCode(), "Successful call"); httpResponse.close(); diff --git a/microprofile-reactive-messaging-kafka/src/test/java/org/wildfly/quickstarts/microprofile/reactive/messaging/test/ReactiveMessagingKafkaIT.java b/microprofile-reactive-messaging-kafka/src/test/java/org/wildfly/quickstarts/microprofile/reactive/messaging/test/ReactiveMessagingKafkaIT.java index 04cc5973f7..8c4c17c68d 100644 --- a/microprofile-reactive-messaging-kafka/src/test/java/org/wildfly/quickstarts/microprofile/reactive/messaging/test/ReactiveMessagingKafkaIT.java +++ b/microprofile-reactive-messaging-kafka/src/test/java/org/wildfly/quickstarts/microprofile/reactive/messaging/test/ReactiveMessagingKafkaIT.java @@ -27,8 +27,8 @@ import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; import org.eclipse.microprofile.rest.client.RestClientBuilder; -import org.junit.Assert; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; import org.reactivestreams.Subscriber; import org.reactivestreams.Subscription; @@ -95,9 +95,9 @@ public void testUserApi() throws Throwable { } private void checkAsynchTask(ListSubscriber task, String... values) { - Assert.assertEquals(3, task.lines.size()); + Assertions.assertEquals(3, task.lines.size()); for (int i = 0; i < values.length; i++) { - Assert.assertTrue("Line " + i + ": " + task.lines.get(i), task.lines.get(i).contains(values[i])); + Assertions.assertTrue(task.lines.get(i).contains(values[i]), "Line " + i + ": " + task.lines.get(i)); } } @@ -105,7 +105,7 @@ private boolean checkResponse(CloseableHttpResponse response, boolean fail) thro String s; List lines = new ArrayList<>(); try { - Assert.assertEquals(200, response.getStatusLine().getStatusCode()); + Assertions.assertEquals(200, response.getStatusLine().getStatusCode()); try (BufferedReader reader = new BufferedReader(new InputStreamReader(response.getEntity().getContent()))) { String line = reader.readLine(); while (line != null) { @@ -113,7 +113,7 @@ private boolean checkResponse(CloseableHttpResponse response, boolean fail) thro line = reader.readLine(); } } - Assert.assertTrue("Expected >= 3 lines in:\n" + lines, lines.size() >= 3); + Assertions.assertTrue(lines.size() >= 3, "Expected >= 3 lines in:\n" + lines); } catch (Throwable throwable) { if (fail) { throw throwable; @@ -121,12 +121,12 @@ private boolean checkResponse(CloseableHttpResponse response, boolean fail) thro return false; } - Assert.assertNotEquals("Expected to find 'Hello' on line 0 of:\n" + lines, -1, lines.get(0).indexOf("Hello")); - Assert.assertNotEquals("Expected to find 'Kafka' on line 1 of:\n" + lines, -1, lines.get(1).indexOf("Kafka")); + Assertions.assertNotEquals(-1, lines.get(0).indexOf("Hello"), "Expected to find 'Hello' on line 0 of:\n" + lines); + Assertions.assertNotEquals(-1, lines.get(1).indexOf("Kafka"), "Expected to find 'Kafka' on line 1 of:\n" + lines); for (int i = 2; i < lines.size(); i++) { - Assert.assertNotEquals( - "Expected to find 'Hello' or 'Kafka' on line " + i + - " of:\n" + lines, -2, lines.get(i).indexOf("Hello") + lines.get(i).indexOf("Kafka")); + Assertions.assertNotEquals( + -2, lines.get(i).indexOf("Hello") + lines.get(i).indexOf("Kafka"), + "Expected to find 'Hello' or 'Kafka' on line " + i + " of:\n" + lines); } return true; } diff --git a/microprofile-rest-client/pom.xml b/microprofile-rest-client/pom.xml index 86f2a41ef2..0db9034a6e 100644 --- a/microprofile-rest-client/pom.xml +++ b/microprofile-rest-client/pom.xml @@ -48,11 +48,11 @@ ${version.server} ${version.server} + 6.1.3 6.0.2.Final 2.0.2.Final 6.2.19.Final - 5.10.5 ${project.build.directory}/server http://localhost:8080 @@ -79,7 +79,7 @@ org.junit junit-bom - ${version.org.junit} + ${version.bom.junit} pom import diff --git a/numberguess/pom.xml b/numberguess/pom.xml index 9407a8bfbc..23caef040f 100644 --- a/numberguess/pom.xml +++ b/numberguess/pom.xml @@ -49,6 +49,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -62,6 +63,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -91,8 +99,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/numberguess/src/test/java/org/jboss/as/quickstarts/numberguess/BasicRuntimeIT.java b/numberguess/src/test/java/org/jboss/as/quickstarts/numberguess/BasicRuntimeIT.java index 86933051ee..f38c1cb544 100644 --- a/numberguess/src/test/java/org/jboss/as/quickstarts/numberguess/BasicRuntimeIT.java +++ b/numberguess/src/test/java/org/jboss/as/quickstarts/numberguess/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.numberguess; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/numberguess/src/test/java/org/jboss/as/quickstarts/numberguess/NumberguessIT.java b/numberguess/src/test/java/org/jboss/as/quickstarts/numberguess/NumberguessIT.java index 78fd078fc1..d01f7a8710 100644 --- a/numberguess/src/test/java/org/jboss/as/quickstarts/numberguess/NumberguessIT.java +++ b/numberguess/src/test/java/org/jboss/as/quickstarts/numberguess/NumberguessIT.java @@ -16,7 +16,7 @@ */ package org.jboss.as.quickstarts.numberguess; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.CookieManager; @@ -33,8 +33,8 @@ import java.nio.charset.StandardCharsets; import java.util.Map; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; public class NumberguessIT { diff --git a/opentelemetry-tracing/pom.xml b/opentelemetry-tracing/pom.xml index 560dfdf5ba..8721e0c754 100644 --- a/opentelemetry-tracing/pom.xml +++ b/opentelemetry-tracing/pom.xml @@ -26,6 +26,7 @@ ${version.server} ${version.server} + 6.1.3 6.0.2.Final @@ -39,6 +40,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + org.wildfly.bom @@ -84,8 +92,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/opentelemetry-tracing/src/test/java/org/wildfly/quickstarts/opentelemetry/BasicRuntimeIT.java b/opentelemetry-tracing/src/test/java/org/wildfly/quickstarts/opentelemetry/BasicRuntimeIT.java index 241de33aef..f83dab91b9 100644 --- a/opentelemetry-tracing/src/test/java/org/wildfly/quickstarts/opentelemetry/BasicRuntimeIT.java +++ b/opentelemetry-tracing/src/test/java/org/wildfly/quickstarts/opentelemetry/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.wildfly.quickstarts.opentelemetry; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import org.junit.Test; +import org.junit.jupiter.api.Test; public class BasicRuntimeIT { private static final String DEFAULT_SERVER_HOST = "http://localhost:8080"; diff --git a/opentelemetry-tracing/src/test/java/org/wildfly/quickstarts/opentelemetry/OpenTelemetryIT.java b/opentelemetry-tracing/src/test/java/org/wildfly/quickstarts/opentelemetry/OpenTelemetryIT.java index c103dd3c19..e2add679c8 100644 --- a/opentelemetry-tracing/src/test/java/org/wildfly/quickstarts/opentelemetry/OpenTelemetryIT.java +++ b/opentelemetry-tracing/src/test/java/org/wildfly/quickstarts/opentelemetry/OpenTelemetryIT.java @@ -15,7 +15,7 @@ */ package org.wildfly.quickstarts.opentelemetry; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.IOException; import java.net.URI; @@ -24,7 +24,7 @@ import java.net.http.HttpRequest; import java.net.http.HttpResponse; -import org.junit.Test; +import org.junit.jupiter.api.Test; public class OpenTelemetryIT { @Test diff --git a/remote-helloworld-mdb/pom.xml b/remote-helloworld-mdb/pom.xml index eaf520ff4e..75954867c0 100644 --- a/remote-helloworld-mdb/pom.xml +++ b/remote-helloworld-mdb/pom.xml @@ -50,9 +50,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -66,9 +65,11 @@ import - org.junit.jupiter - junit-jupiter-engine - ${version.junit-jupiter-engine} + org.junit + junit-bom + ${version.bom.junit} + pom + import @@ -105,7 +106,7 @@ org.junit.jupiter - junit-jupiter-engine + junit-jupiter test diff --git a/security-domain-to-domain/ejb/pom.xml b/security-domain-to-domain/ejb/pom.xml index 5629d8ac83..23b00acce9 100644 --- a/security-domain-to-domain/ejb/pom.xml +++ b/security-domain-to-domain/ejb/pom.xml @@ -68,8 +68,8 @@ jboss-ejb3-ext-api - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/security-domain-to-domain/pom.xml b/security-domain-to-domain/pom.xml index 6cdb45c8c2..0300916c22 100644 --- a/security-domain-to-domain/pom.xml +++ b/security-domain-to-domain/pom.xml @@ -57,6 +57,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -70,6 +71,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + diff --git a/security-domain-to-domain/test/pom.xml b/security-domain-to-domain/test/pom.xml index fcc5810188..2623bd7ecd 100644 --- a/security-domain-to-domain/test/pom.xml +++ b/security-domain-to-domain/test/pom.xml @@ -34,8 +34,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/security-domain-to-domain/test/src/test/java/org/wildfly/quickstarts/security_domain_to_domain_web/BasicRuntimeIT.java b/security-domain-to-domain/test/src/test/java/org/wildfly/quickstarts/security_domain_to_domain_web/BasicRuntimeIT.java index 002d809ce0..3bb8579de6 100644 --- a/security-domain-to-domain/test/src/test/java/org/wildfly/quickstarts/security_domain_to_domain_web/BasicRuntimeIT.java +++ b/security-domain-to-domain/test/src/test/java/org/wildfly/quickstarts/security_domain_to_domain_web/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.wildfly.quickstarts.security_domain_to_domain_web; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -27,7 +27,7 @@ import java.time.Duration; import java.util.Base64; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/servlet-async/pom.xml b/servlet-async/pom.xml index 3ba10736d8..0110527034 100644 --- a/servlet-async/pom.xml +++ b/servlet-async/pom.xml @@ -50,9 +50,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -65,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -102,8 +108,7 @@ org.junit.jupiter - junit-jupiter-engine - ${version.org.junit.jupiter} + junit-jupiter test diff --git a/servlet-filterlistener/pom.xml b/servlet-filterlistener/pom.xml index c714f9f1b7..fcc75f9217 100644 --- a/servlet-filterlistener/pom.xml +++ b/servlet-filterlistener/pom.xml @@ -50,9 +50,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -65,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -102,8 +108,7 @@ org.junit.jupiter - junit-jupiter-engine - ${version.org.junit.jupiter} + junit-jupiter test diff --git a/servlet-security/pom.xml b/servlet-security/pom.xml index 47fd4203c0..5a0544db93 100644 --- a/servlet-security/pom.xml +++ b/servlet-security/pom.xml @@ -50,9 +50,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -65,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -95,8 +101,7 @@ org.junit.jupiter - junit-jupiter-engine - ${version.org.junit.jupiter} + junit-jupiter test diff --git a/spring-resteasy/pom.xml b/spring-resteasy/pom.xml index 9c4e39feeb..bb0de01ab1 100644 --- a/spring-resteasy/pom.xml +++ b/spring-resteasy/pom.xml @@ -50,6 +50,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final 6.0.23 @@ -65,6 +66,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -109,8 +117,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/spring-resteasy/src/test/java/org/jboss/as/quickstarts/resteasyspring/test/BasicRuntimeIT.java b/spring-resteasy/src/test/java/org/jboss/as/quickstarts/resteasyspring/test/BasicRuntimeIT.java index d28e5616db..65b735131e 100644 --- a/spring-resteasy/src/test/java/org/jboss/as/quickstarts/resteasyspring/test/BasicRuntimeIT.java +++ b/spring-resteasy/src/test/java/org/jboss/as/quickstarts/resteasyspring/test/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.resteasyspring.test; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,8 +25,8 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; /** * The very basic runtime integration testing. diff --git a/spring-resteasy/src/test/java/org/jboss/as/quickstarts/resteasyspring/test/ResteasySpringIT.java b/spring-resteasy/src/test/java/org/jboss/as/quickstarts/resteasyspring/test/ResteasySpringIT.java index 955bc44f03..da37d021a7 100644 --- a/spring-resteasy/src/test/java/org/jboss/as/quickstarts/resteasyspring/test/ResteasySpringIT.java +++ b/spring-resteasy/src/test/java/org/jboss/as/quickstarts/resteasyspring/test/ResteasySpringIT.java @@ -30,9 +30,9 @@ import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.util.EntityUtils; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; /** * Basic unit tests for resteasy spring integration @@ -44,7 +44,7 @@ public class ResteasySpringIT { private static final String DEFAULT_SERVER_HOST = "http://localhost:8080"; - @BeforeClass + @BeforeAll public static void setupUrl() throws MalformedURLException { String serverHost = System.getenv("SERVER_HOST"); if (serverHost == null) { @@ -69,8 +69,8 @@ public void testHelloSpringResource() throws Exception { .build(); HttpGet method = new HttpGet(uri); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); - Assert.assertTrue(EntityUtils.toString(response.getEntity()).contains("JBoss Developer")); + Assertions.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); + Assertions.assertTrue(EntityUtils.toString(response.getEntity()).contains("JBoss Developer")); } finally { method.releaseConnection(); } @@ -78,8 +78,8 @@ public void testHelloSpringResource() throws Exception { { HttpGet method = new HttpGet(url.toString() + "/spring-resteasy/basic"); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); - Assert.assertTrue(EntityUtils.toString(response.getEntity()).contains("basic")); + Assertions.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); + Assertions.assertTrue(EntityUtils.toString(response.getEntity()).contains("basic")); } finally { method.releaseConnection(); } @@ -88,7 +88,7 @@ public void testHelloSpringResource() throws Exception { HttpPut method = new HttpPut(url.toString() + "/spring-resteasy/basic"); method.setEntity(new StringEntity("basic", ContentType.TEXT_PLAIN)); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_NO_CONTENT, response.getStatusLine().getStatusCode()); + Assertions.assertEquals(HttpStatus.SC_NO_CONTENT, response.getStatusLine().getStatusCode()); } finally { method.releaseConnection(); } @@ -103,8 +103,8 @@ public void testHelloSpringResource() throws Exception { .build(); HttpGet method = new HttpGet(uri); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); - Assert.assertTrue(EntityUtils.toString(response.getEntity()).contains("hello world")); + Assertions.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); + Assertions.assertTrue(EntityUtils.toString(response.getEntity()).contains("hello world")); } finally { method.releaseConnection(); } @@ -112,8 +112,8 @@ public void testHelloSpringResource() throws Exception { { HttpGet method = new HttpGet(url.toString() + "/spring-resteasy/matrixParam;param=matrix"); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); - Assert.assertEquals("matrix", EntityUtils.toString(response.getEntity())); + Assertions.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); + Assertions.assertEquals("matrix", EntityUtils.toString(response.getEntity())); } finally { method.releaseConnection(); } @@ -121,8 +121,8 @@ public void testHelloSpringResource() throws Exception { { HttpGet method = new HttpGet(url.toString() + "/spring-resteasy/uriParam/1234"); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); - Assert.assertEquals("1234", EntityUtils.toString(response.getEntity())); + Assertions.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); + Assertions.assertEquals("1234", EntityUtils.toString(response.getEntity())); } finally { method.releaseConnection(); } @@ -143,8 +143,8 @@ public void testLocatingResource() throws Exception { .build(); HttpGet method = new HttpGet(uri); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); - Assert.assertTrue(EntityUtils.toString(response.getEntity()).contains("JBoss Developer")); + Assertions.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); + Assertions.assertTrue(EntityUtils.toString(response.getEntity()).contains("JBoss Developer")); } finally { method.releaseConnection(); } @@ -152,8 +152,8 @@ public void testLocatingResource() throws Exception { { HttpGet method = new HttpGet(url.toString() + "/spring-resteasy/locating/basic"); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); - Assert.assertTrue(EntityUtils.toString(response.getEntity()).contains("basic")); + Assertions.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); + Assertions.assertTrue(EntityUtils.toString(response.getEntity()).contains("basic")); } finally { method.releaseConnection(); } @@ -162,7 +162,7 @@ public void testLocatingResource() throws Exception { HttpPut method = new HttpPut(url.toString() + "/spring-resteasy/locating/basic"); method.setEntity(new StringEntity("basic", ContentType.TEXT_PLAIN)); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_NO_CONTENT, response.getStatusLine().getStatusCode()); + Assertions.assertEquals(HttpStatus.SC_NO_CONTENT, response.getStatusLine().getStatusCode()); } finally { method.releaseConnection(); } @@ -177,8 +177,8 @@ public void testLocatingResource() throws Exception { .build(); HttpGet method = new HttpGet(uri); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); - Assert.assertTrue(EntityUtils.toString(response.getEntity()).contains("hello world")); + Assertions.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); + Assertions.assertTrue(EntityUtils.toString(response.getEntity()).contains("hello world")); } finally { method.releaseConnection(); } @@ -186,8 +186,8 @@ public void testLocatingResource() throws Exception { { HttpGet method = new HttpGet(url.toString() + "/spring-resteasy/locating/matrixParam;param=matrix"); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); - Assert.assertEquals("matrix", EntityUtils.toString(response.getEntity())); + Assertions.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); + Assertions.assertEquals("matrix", EntityUtils.toString(response.getEntity())); } finally { method.releaseConnection(); } @@ -195,8 +195,8 @@ public void testLocatingResource() throws Exception { { HttpGet method = new HttpGet(url.toString() + "/spring-resteasy/locating/uriParam/1234"); try (CloseableHttpResponse response = client.execute(method)) { - Assert.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); - Assert.assertEquals("1234", EntityUtils.toString(response.getEntity())); + Assertions.assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode()); + Assertions.assertEquals("1234", EntityUtils.toString(response.getEntity())); } finally { method.releaseConnection(); } diff --git a/tasks-jsf/pom.xml b/tasks-jsf/pom.xml index 6e19ea460d..8201affd06 100644 --- a/tasks-jsf/pom.xml +++ b/tasks-jsf/pom.xml @@ -50,9 +50,8 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - - 5.9.3 @@ -65,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -104,8 +110,7 @@ org.junit.jupiter - junit-jupiter-engine - ${version.org.junit.jupiter} + junit-jupiter test diff --git a/temperature-converter/pom.xml b/temperature-converter/pom.xml index 3a8ffdd820..f0c1af2a6c 100644 --- a/temperature-converter/pom.xml +++ b/temperature-converter/pom.xml @@ -50,6 +50,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -63,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -98,8 +106,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/temperature-converter/src/test/java/org/jboss/as/quickstarts/temperatureconverter/BasicRuntimeIT.java b/temperature-converter/src/test/java/org/jboss/as/quickstarts/temperatureconverter/BasicRuntimeIT.java index 38d271b550..bdad749e57 100644 --- a/temperature-converter/src/test/java/org/jboss/as/quickstarts/temperatureconverter/BasicRuntimeIT.java +++ b/temperature-converter/src/test/java/org/jboss/as/quickstarts/temperatureconverter/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.temperatureconverter; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/temperature-converter/src/test/java/org/jboss/as/quickstarts/temperatureconverter/TemperatureConverterIT.java b/temperature-converter/src/test/java/org/jboss/as/quickstarts/temperatureconverter/TemperatureConverterIT.java index 69512490a6..ecfc720243 100644 --- a/temperature-converter/src/test/java/org/jboss/as/quickstarts/temperatureconverter/TemperatureConverterIT.java +++ b/temperature-converter/src/test/java/org/jboss/as/quickstarts/temperatureconverter/TemperatureConverterIT.java @@ -16,7 +16,7 @@ */ package org.jboss.as.quickstarts.temperatureconverter; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.net.CookieManager; import java.net.CookiePolicy; @@ -30,8 +30,8 @@ import java.nio.charset.StandardCharsets; import java.util.Map; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; public class TemperatureConverterIT { @@ -46,7 +46,7 @@ public void testConvertTemperature() throws Exception { HttpResponse response = client.send(HttpRequest.newBuilder(new URI(BasicRuntimeIT.getServerHost()+"/temperature-converter/temperatureconvert.jsf")).GET().build(), HttpResponse.BodyHandlers.ofString()); String body = response.body().toString(); assertEquals(200, response.statusCode()); - assertTrue(body, body.contains(" data) { diff --git a/thread-racing/pom.xml b/thread-racing/pom.xml index 89371ae752..cb3eb5b301 100644 --- a/thread-racing/pom.xml +++ b/thread-racing/pom.xml @@ -50,6 +50,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -63,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -157,8 +165,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/thread-racing/src/test/java/org/jboss/as/quickstarts/threadracing/BasicRuntimeIT.java b/thread-racing/src/test/java/org/jboss/as/quickstarts/threadracing/BasicRuntimeIT.java index 9b43d30e99..3679f9e57d 100644 --- a/thread-racing/src/test/java/org/jboss/as/quickstarts/threadracing/BasicRuntimeIT.java +++ b/thread-racing/src/test/java/org/jboss/as/quickstarts/threadracing/BasicRuntimeIT.java @@ -15,7 +15,7 @@ */ package org.jboss.as.quickstarts.threadracing; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.URI; @@ -25,7 +25,7 @@ import java.net.http.HttpResponse; import java.time.Duration; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * The very basic runtime integration testing. diff --git a/thread-racing/src/test/java/org/jboss/as/quickstarts/threadracing/ThreadRacingIT.java b/thread-racing/src/test/java/org/jboss/as/quickstarts/threadracing/ThreadRacingIT.java index 02a32b34fa..05175eb84d 100644 --- a/thread-racing/src/test/java/org/jboss/as/quickstarts/threadracing/ThreadRacingIT.java +++ b/thread-racing/src/test/java/org/jboss/as/quickstarts/threadracing/ThreadRacingIT.java @@ -16,7 +16,7 @@ */ package org.jboss.as.quickstarts.threadracing; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.IOException; @@ -27,9 +27,9 @@ import java.util.LinkedHashSet; import java.util.Set; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; /** * The thread racing runtime integration testing. @@ -76,16 +76,16 @@ public void race() throws IOException, InterruptedException { .newWebSocketBuilder() .buildAsync(getWebSocketEndpoint(), listener) .join(); - assertTrue("Connection should be opened", listener.isConnected()); + assertTrue(listener.isConnected(), "Connection should be opened"); while (notFinished) { webSocket.request(1); } webSocket.sendClose(WebSocket.NORMAL_CLOSURE, "Done"); webSocket.request(1); - assertTrue("Connection should be closed", webSocket.isOutputClosed()); - assertFalse("Connection should be closed", listener.isConnected()); + assertTrue(webSocket.isOutputClosed(), "Connection should be closed"); + assertFalse(listener.isConnected(), "Connection should be closed"); webSocket.abort(); - assertTrue("Connection should be closed", webSocket.isInputClosed()); + assertTrue(webSocket.isInputClosed(), "Connection should be closed"); String[] result = messages.toArray(new String[0]); assertEquals("
Please await() the official results ", result[messages.size() - 6]); } diff --git a/todo-backend/pom.xml b/todo-backend/pom.xml index 931abdd5e2..418d8744b3 100644 --- a/todo-backend/pom.xml +++ b/todo-backend/pom.xml @@ -50,6 +50,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -63,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -118,8 +126,7 @@ org.junit.jupiter - junit-jupiter-engine - 5.9.3 + junit-jupiter test diff --git a/websocket-endpoint/pom.xml b/websocket-endpoint/pom.xml index d3ca3ba387..2443d8a97c 100644 --- a/websocket-endpoint/pom.xml +++ b/websocket-endpoint/pom.xml @@ -50,9 +50,9 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final - 5.9.3 1.1.9 @@ -66,6 +66,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -122,8 +129,7 @@ org.junit.jupiter - junit-jupiter-engine - ${version.org.junit.jupiter} + junit-jupiter test diff --git a/websocket-hello/pom.xml b/websocket-hello/pom.xml index 7bc7c8e7bf..5ef0cb89c9 100644 --- a/websocket-hello/pom.xml +++ b/websocket-hello/pom.xml @@ -50,6 +50,7 @@ 42.0.0.Beta1 ${version.server} + 6.1.3 6.0.2.Final @@ -63,6 +64,13 @@ pom import + + org.junit + junit-bom + ${version.bom.junit} + pom + import + @@ -79,8 +87,7 @@ org.junit.jupiter - junit-jupiter-engine - 5.9.3 + junit-jupiter test From dad3b0e1ebf83d6b9d2b39cc1d1125be535f872c Mon Sep 17 00:00:00 2001 From: Eduardo Martins Date: Tue, 20 Oct 2026 13:44:22 +0100 Subject: [PATCH 2/2] Bump version.plugin.wildfly to 6.0.3.Final --- batch-processing/pom.xml | 2 +- bmt/pom.xml | 2 +- cmt/pom.xml | 2 +- ee-security/pom.xml | 2 +- ejb-multi-server/pom.xml | 2 +- ejb-remote/pom.xml | 2 +- ejb-security-context-propagation/pom.xml | 2 +- ejb-security-programmatic-auth/pom.xml | 2 +- ejb-throws-exception/pom.xml | 2 +- ejb-timer/pom.xml | 2 +- ejb-txn-remote-call/client/pom.xml | 2 +- ejb-txn-remote-call/server/pom.xml | 2 +- ha-singleton-deployment/pom.xml | 2 +- ha-singleton-service/pom.xml | 2 +- helloworld-jms/pom.xml | 2 +- helloworld-mdb/pom.xml | 2 +- helloworld-mutual-ssl-secured/pom.xml | 2 +- helloworld-mutual-ssl/pom.xml | 2 +- helloworld-rs/pom.xml | 2 +- helloworld-singleton/pom.xml | 2 +- helloworld-ws/pom.xml | 2 +- helloworld/pom.xml | 2 +- hibernate/pom.xml | 2 +- http-custom-mechanism/pom.xml | 2 +- jaxrs-client/pom.xml | 2 +- jaxrs-jwt/pom.xml | 2 +- jaxws-ejb/pom.xml | 2 +- jaxws-retail/pom.xml | 2 +- jsonp/pom.xml | 2 +- jta-crash-rec/pom.xml | 2 +- jts/pom.xml | 2 +- kitchensink/pom.xml | 2 +- logging/pom.xml | 2 +- mail/pom.xml | 2 +- messaging-clustering-singleton/pom.xml | 2 +- micrometer/pom.xml | 2 +- microprofile-config/pom.xml | 2 +- microprofile-fault-tolerance/pom.xml | 2 +- microprofile-health/pom.xml | 2 +- microprofile-jwt/pom.xml | 2 +- microprofile-lra/pom.xml | 2 +- microprofile-openapi/pom.xml | 2 +- microprofile-reactive-messaging-kafka/pom.xml | 2 +- microprofile-rest-client/pom.xml | 2 +- numberguess/pom.xml | 2 +- opentelemetry-tracing/pom.xml | 2 +- remote-helloworld-mdb/pom.xml | 2 +- security-domain-to-domain/pom.xml | 2 +- servlet-async/pom.xml | 2 +- servlet-filterlistener/pom.xml | 2 +- servlet-security/pom.xml | 2 +- spring-resteasy/pom.xml | 2 +- tasks-jsf/pom.xml | 2 +- temperature-converter/pom.xml | 2 +- thread-racing/pom.xml | 2 +- todo-backend/pom.xml | 2 +- websocket-endpoint/pom.xml | 2 +- websocket-hello/pom.xml | 2 +- 58 files changed, 58 insertions(+), 58 deletions(-) diff --git a/batch-processing/pom.xml b/batch-processing/pom.xml index 8499a585b4..60fbb23f2c 100644 --- a/batch-processing/pom.xml +++ b/batch-processing/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/bmt/pom.xml b/bmt/pom.xml index cdaba726f3..93c74cb249 100644 --- a/bmt/pom.xml +++ b/bmt/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/cmt/pom.xml b/cmt/pom.xml index 9f01080381..82d2ad0a43 100644 --- a/cmt/pom.xml +++ b/cmt/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/ee-security/pom.xml b/ee-security/pom.xml index e3eb9b6f30..9a9d3225ba 100644 --- a/ee-security/pom.xml +++ b/ee-security/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/ejb-multi-server/pom.xml b/ejb-multi-server/pom.xml index 1087c14caf..3506a82bd6 100644 --- a/ejb-multi-server/pom.xml +++ b/ejb-multi-server/pom.xml @@ -53,7 +53,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/ejb-remote/pom.xml b/ejb-remote/pom.xml index e6dd82e8e1..63d0f37839 100644 --- a/ejb-remote/pom.xml +++ b/ejb-remote/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/ejb-security-context-propagation/pom.xml b/ejb-security-context-propagation/pom.xml index 6e9ee432a6..a7ed9e0027 100644 --- a/ejb-security-context-propagation/pom.xml +++ b/ejb-security-context-propagation/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/ejb-security-programmatic-auth/pom.xml b/ejb-security-programmatic-auth/pom.xml index 8aead09ae9..4915fcdbbb 100644 --- a/ejb-security-programmatic-auth/pom.xml +++ b/ejb-security-programmatic-auth/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/ejb-throws-exception/pom.xml b/ejb-throws-exception/pom.xml index 20ddfdbe2b..ad4486cb07 100644 --- a/ejb-throws-exception/pom.xml +++ b/ejb-throws-exception/pom.xml @@ -57,7 +57,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/ejb-timer/pom.xml b/ejb-timer/pom.xml index da0566f082..27e90ac3e4 100644 --- a/ejb-timer/pom.xml +++ b/ejb-timer/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/ejb-txn-remote-call/client/pom.xml b/ejb-txn-remote-call/client/pom.xml index da096a32c8..ccba10815b 100644 --- a/ejb-txn-remote-call/client/pom.xml +++ b/ejb-txn-remote-call/client/pom.xml @@ -43,7 +43,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final 42.7.13 diff --git a/ejb-txn-remote-call/server/pom.xml b/ejb-txn-remote-call/server/pom.xml index 46362c793c..51e6e394db 100644 --- a/ejb-txn-remote-call/server/pom.xml +++ b/ejb-txn-remote-call/server/pom.xml @@ -43,7 +43,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final 7.0.2.Final diff --git a/ha-singleton-deployment/pom.xml b/ha-singleton-deployment/pom.xml index ee97f503a0..38adb65e4d 100644 --- a/ha-singleton-deployment/pom.xml +++ b/ha-singleton-deployment/pom.xml @@ -57,7 +57,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/ha-singleton-service/pom.xml b/ha-singleton-service/pom.xml index de34561372..e421c271b6 100644 --- a/ha-singleton-service/pom.xml +++ b/ha-singleton-service/pom.xml @@ -52,7 +52,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/helloworld-jms/pom.xml b/helloworld-jms/pom.xml index c5d4b037fe..336edcf1c3 100644 --- a/helloworld-jms/pom.xml +++ b/helloworld-jms/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/helloworld-mdb/pom.xml b/helloworld-mdb/pom.xml index 82adb57da2..16b6767998 100644 --- a/helloworld-mdb/pom.xml +++ b/helloworld-mdb/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/helloworld-mutual-ssl-secured/pom.xml b/helloworld-mutual-ssl-secured/pom.xml index 7325a79440..d257d3a297 100644 --- a/helloworld-mutual-ssl-secured/pom.xml +++ b/helloworld-mutual-ssl-secured/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/helloworld-mutual-ssl/pom.xml b/helloworld-mutual-ssl/pom.xml index 6e32c14a66..316b60203c 100644 --- a/helloworld-mutual-ssl/pom.xml +++ b/helloworld-mutual-ssl/pom.xml @@ -38,7 +38,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final helloworld-mutual-ssl diff --git a/helloworld-rs/pom.xml b/helloworld-rs/pom.xml index c6593d0688..fb040021df 100644 --- a/helloworld-rs/pom.xml +++ b/helloworld-rs/pom.xml @@ -38,7 +38,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/helloworld-singleton/pom.xml b/helloworld-singleton/pom.xml index 230165dce8..e16ddf0833 100644 --- a/helloworld-singleton/pom.xml +++ b/helloworld-singleton/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/helloworld-ws/pom.xml b/helloworld-ws/pom.xml index 62713243f6..5757faab4a 100644 --- a/helloworld-ws/pom.xml +++ b/helloworld-ws/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/helloworld/pom.xml b/helloworld/pom.xml index 94249ff66e..5ebce4ed0e 100644 --- a/helloworld/pom.xml +++ b/helloworld/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/hibernate/pom.xml b/hibernate/pom.xml index a18d4ab47f..3aaedab81c 100644 --- a/hibernate/pom.xml +++ b/hibernate/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/http-custom-mechanism/pom.xml b/http-custom-mechanism/pom.xml index 42b06b7b49..1ed6d62892 100644 --- a/http-custom-mechanism/pom.xml +++ b/http-custom-mechanism/pom.xml @@ -56,7 +56,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/jaxrs-client/pom.xml b/jaxrs-client/pom.xml index 79959c1b72..6f662e22e1 100644 --- a/jaxrs-client/pom.xml +++ b/jaxrs-client/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final 9.37.1 diff --git a/jaxrs-jwt/pom.xml b/jaxrs-jwt/pom.xml index b819c0d1de..6632018d6a 100644 --- a/jaxrs-jwt/pom.xml +++ b/jaxrs-jwt/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final 10.3.1 diff --git a/jaxws-ejb/pom.xml b/jaxws-ejb/pom.xml index 64c39dca4e..d4b4d73d30 100644 --- a/jaxws-ejb/pom.xml +++ b/jaxws-ejb/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/jaxws-retail/pom.xml b/jaxws-retail/pom.xml index 0874f46933..bc076a5615 100644 --- a/jaxws-retail/pom.xml +++ b/jaxws-retail/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final 1.3.1.Final diff --git a/jsonp/pom.xml b/jsonp/pom.xml index d009e92451..0cb9f761f0 100644 --- a/jsonp/pom.xml +++ b/jsonp/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/jta-crash-rec/pom.xml b/jta-crash-rec/pom.xml index e34fe557ab..b5cc5a9dee 100644 --- a/jta-crash-rec/pom.xml +++ b/jta-crash-rec/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/jts/pom.xml b/jts/pom.xml index 4a7103fbf6..1728b93f51 100644 --- a/jts/pom.xml +++ b/jts/pom.xml @@ -58,7 +58,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/kitchensink/pom.xml b/kitchensink/pom.xml index 4f2b0174fb..b81491b99e 100644 --- a/kitchensink/pom.xml +++ b/kitchensink/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/logging/pom.xml b/logging/pom.xml index f614e914f8..bd52bca2b9 100644 --- a/logging/pom.xml +++ b/logging/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final ${project.build.directory}/server diff --git a/mail/pom.xml b/mail/pom.xml index 10d2b5bc40..3bb5f14826 100644 --- a/mail/pom.xml +++ b/mail/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final 4.21.0 diff --git a/messaging-clustering-singleton/pom.xml b/messaging-clustering-singleton/pom.xml index baf0718b9d..c1b98a4d13 100644 --- a/messaging-clustering-singleton/pom.xml +++ b/messaging-clustering-singleton/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/micrometer/pom.xml b/micrometer/pom.xml index 854d85919e..c243dd68fd 100644 --- a/micrometer/pom.xml +++ b/micrometer/pom.xml @@ -29,7 +29,7 @@ ${version.server} ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/microprofile-config/pom.xml b/microprofile-config/pom.xml index 6f4ae90ee5..667009bebd 100644 --- a/microprofile-config/pom.xml +++ b/microprofile-config/pom.xml @@ -27,7 +27,7 @@ ${version.server} ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/microprofile-fault-tolerance/pom.xml b/microprofile-fault-tolerance/pom.xml index 7cc201ff23..d33021c457 100644 --- a/microprofile-fault-tolerance/pom.xml +++ b/microprofile-fault-tolerance/pom.xml @@ -60,7 +60,7 @@ ${version.server} ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final 4.3.3 diff --git a/microprofile-health/pom.xml b/microprofile-health/pom.xml index c89fb01aea..25c6d78b07 100644 --- a/microprofile-health/pom.xml +++ b/microprofile-health/pom.xml @@ -26,7 +26,7 @@ ${version.server} ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/microprofile-jwt/pom.xml b/microprofile-jwt/pom.xml index 761634e0be..ce721e0acf 100644 --- a/microprofile-jwt/pom.xml +++ b/microprofile-jwt/pom.xml @@ -51,7 +51,7 @@ ${version.server} ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final 10.3.1 1.1.6 diff --git a/microprofile-lra/pom.xml b/microprofile-lra/pom.xml index 26ec623c66..4fcaf373fd 100644 --- a/microprofile-lra/pom.xml +++ b/microprofile-lra/pom.xml @@ -26,7 +26,7 @@ ${version.server} ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/microprofile-openapi/pom.xml b/microprofile-openapi/pom.xml index 2120607ddb..7e3d7f79c8 100644 --- a/microprofile-openapi/pom.xml +++ b/microprofile-openapi/pom.xml @@ -28,7 +28,7 @@ ${version.server} ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/microprofile-reactive-messaging-kafka/pom.xml b/microprofile-reactive-messaging-kafka/pom.xml index 1bf9037fa5..350f35c50d 100644 --- a/microprofile-reactive-messaging-kafka/pom.xml +++ b/microprofile-reactive-messaging-kafka/pom.xml @@ -43,7 +43,7 @@ ${version.server} ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/microprofile-rest-client/pom.xml b/microprofile-rest-client/pom.xml index 0db9034a6e..0084f564ff 100644 --- a/microprofile-rest-client/pom.xml +++ b/microprofile-rest-client/pom.xml @@ -49,7 +49,7 @@ ${version.server} ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final 2.0.2.Final 6.2.19.Final diff --git a/numberguess/pom.xml b/numberguess/pom.xml index 23caef040f..4152c3119c 100644 --- a/numberguess/pom.xml +++ b/numberguess/pom.xml @@ -50,7 +50,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/opentelemetry-tracing/pom.xml b/opentelemetry-tracing/pom.xml index 8721e0c754..a80ecc02e6 100644 --- a/opentelemetry-tracing/pom.xml +++ b/opentelemetry-tracing/pom.xml @@ -27,7 +27,7 @@ ${version.server} ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/remote-helloworld-mdb/pom.xml b/remote-helloworld-mdb/pom.xml index 75954867c0..a55a24f28a 100644 --- a/remote-helloworld-mdb/pom.xml +++ b/remote-helloworld-mdb/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/security-domain-to-domain/pom.xml b/security-domain-to-domain/pom.xml index 0300916c22..5bf9c6fd91 100644 --- a/security-domain-to-domain/pom.xml +++ b/security-domain-to-domain/pom.xml @@ -58,7 +58,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/servlet-async/pom.xml b/servlet-async/pom.xml index 0110527034..baf924a437 100644 --- a/servlet-async/pom.xml +++ b/servlet-async/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/servlet-filterlistener/pom.xml b/servlet-filterlistener/pom.xml index fcc75f9217..ea368ad072 100644 --- a/servlet-filterlistener/pom.xml +++ b/servlet-filterlistener/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/servlet-security/pom.xml b/servlet-security/pom.xml index 5a0544db93..b50d432989 100644 --- a/servlet-security/pom.xml +++ b/servlet-security/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/spring-resteasy/pom.xml b/spring-resteasy/pom.xml index bb0de01ab1..81eea1cfa9 100644 --- a/spring-resteasy/pom.xml +++ b/spring-resteasy/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final 6.0.23 diff --git a/tasks-jsf/pom.xml b/tasks-jsf/pom.xml index 8201affd06..69d875daa9 100644 --- a/tasks-jsf/pom.xml +++ b/tasks-jsf/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/temperature-converter/pom.xml b/temperature-converter/pom.xml index f0c1af2a6c..d8db63c200 100644 --- a/temperature-converter/pom.xml +++ b/temperature-converter/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/thread-racing/pom.xml b/thread-racing/pom.xml index cb3eb5b301..fff18507c1 100644 --- a/thread-racing/pom.xml +++ b/thread-racing/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/todo-backend/pom.xml b/todo-backend/pom.xml index 418d8744b3..3d2dea6630 100644 --- a/todo-backend/pom.xml +++ b/todo-backend/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final diff --git a/websocket-endpoint/pom.xml b/websocket-endpoint/pom.xml index 2443d8a97c..2c7744f114 100644 --- a/websocket-endpoint/pom.xml +++ b/websocket-endpoint/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final 1.1.9 diff --git a/websocket-hello/pom.xml b/websocket-hello/pom.xml index 5ef0cb89c9..7dd4afaada 100644 --- a/websocket-hello/pom.xml +++ b/websocket-hello/pom.xml @@ -51,7 +51,7 @@ ${version.server} 6.1.3 - 6.0.2.Final + 6.0.3.Final