From bd178710dc2fe9434589a4c05bd129bb2d3ab203 Mon Sep 17 00:00:00 2001 From: Anastasios Ioannidis <121166333+anastasiosioannidis@users.noreply.github.com> Date: Mon, 6 Mar 2023 20:26:19 +0200 Subject: [PATCH] Java 16710 (#13471) * JAVA-16710 Disabled reusing forks * JAVA-16710 Try removing alphabetical order for tests --- core-java-modules/core-java-jndi/pom.xml | 12 ++++++++++++ .../jndi/exceptions/JndiExceptionsUnitTest.java | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/core-java-modules/core-java-jndi/pom.xml b/core-java-modules/core-java-jndi/pom.xml index 23a2fe3bfb..752700c390 100644 --- a/core-java-modules/core-java-jndi/pom.xml +++ b/core-java-modules/core-java-jndi/pom.xml @@ -51,6 +51,18 @@ + + maven-surefire-plugin + 2.22.2 + + 3 + false + + SpringContextTest + **/*UnitTest + + + org.apache.maven.plugins maven-compiler-plugin diff --git a/core-java-modules/core-java-jndi/src/test/java/com/baeldung/jndi/exceptions/JndiExceptionsUnitTest.java b/core-java-modules/core-java-jndi/src/test/java/com/baeldung/jndi/exceptions/JndiExceptionsUnitTest.java index 77f1e52f08..4d202f8f0c 100644 --- a/core-java-modules/core-java-jndi/src/test/java/com/baeldung/jndi/exceptions/JndiExceptionsUnitTest.java +++ b/core-java-modules/core-java-jndi/src/test/java/com/baeldung/jndi/exceptions/JndiExceptionsUnitTest.java @@ -21,7 +21,6 @@ public class JndiExceptionsUnitTest { @Test @Order(1) - @Disabled void givenNoContext_whenLookupObject_thenThrowNoInitialContext() { assertThrows(NoInitialContextException.class, () -> { JndiTemplate jndiTemplate = new JndiTemplate();