From b0c3152a9c2e14d5c98ac7785eba0407a52877e7 Mon Sep 17 00:00:00 2001 From: mikr Date: Wed, 22 Jan 2020 08:48:27 +0100 Subject: [PATCH 1/2] BAEL-20598 Fix unit test in core-java-jndi module --- core-java-modules/core-java-jndi/pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core-java-modules/core-java-jndi/pom.xml b/core-java-modules/core-java-jndi/pom.xml index 5f1d01a9f5..e60ee35410 100644 --- a/core-java-modules/core-java-jndi/pom.xml +++ b/core-java-modules/core-java-jndi/pom.xml @@ -22,6 +22,17 @@ ${jupiter.version} test + + org.junit.jupiter + junit-jupiter-api + ${jupiter.version} + test + + + org.junit.jupiter + junit-jupiter-engine + ${jupiter.version} + org.springframework spring-core From 876cc21191cc7856e5e9a661e179b788ea62bd1e Mon Sep 17 00:00:00 2001 From: mikr Date: Wed, 22 Jan 2020 08:55:30 +0100 Subject: [PATCH 2/2] BAEL-20598 Merge master --- core-java-modules/core-java-jndi/pom.xml | 6 ------ .../baeldung/jndi/exceptions/JndiExceptionsUnitTest.java | 1 - 2 files changed, 7 deletions(-) diff --git a/core-java-modules/core-java-jndi/pom.xml b/core-java-modules/core-java-jndi/pom.xml index 4b108292e1..482d07a999 100644 --- a/core-java-modules/core-java-jndi/pom.xml +++ b/core-java-modules/core-java-jndi/pom.xml @@ -21,12 +21,6 @@ ${jupiter.version} test - - org.junit.jupiter - junit-jupiter-api - 5.5.1 - test - org.junit.jupiter junit-jupiter-api 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 434fa41252..218807568c 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 @@ -17,7 +17,6 @@ import org.springframework.mock.jndi.SimpleNamingContextBuilder; @TestMethodOrder(MethodOrderer.OrderAnnotation.class) public class JndiExceptionsUnitTest { - @Disabled @Test @Order(1) void givenNoContext_whenLookupObject_thenThrowNoInitialContext() {