diff --git a/drools-compiler/pom.xml b/drools-compiler/pom.xml
index 557640fdfbb..cfa70e99f13 100644
--- a/drools-compiler/pom.xml
+++ b/drools-compiler/pom.xml
@@ -144,6 +144,11 @@
drools-wiring-dynamic
test
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
org.kie
diff --git a/drools-compiler/src/test/java/org/drools/compiler/CompilerTest.java b/drools-compiler/src/test/java/org/drools/compiler/CompilerTest.java
index f637cbe3b53..1650e04e3a7 100644
--- a/drools-compiler/src/test/java/org/drools/compiler/CompilerTest.java
+++ b/drools-compiler/src/test/java/org/drools/compiler/CompilerTest.java
@@ -18,7 +18,7 @@
*/
package org.drools.compiler;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.kie.api.io.ResourceType;
import org.kie.internal.utils.KieHelper;
diff --git a/drools-compiler/src/test/java/org/drools/compiler/lang/descr/CompositePackageDescrTest.java b/drools-compiler/src/test/java/org/drools/compiler/lang/descr/CompositePackageDescrTest.java
index c39dc3789a7..8db4b817aca 100644
--- a/drools-compiler/src/test/java/org/drools/compiler/lang/descr/CompositePackageDescrTest.java
+++ b/drools-compiler/src/test/java/org/drools/compiler/lang/descr/CompositePackageDescrTest.java
@@ -20,10 +20,11 @@
import org.drools.drl.ast.descr.PackageDescr;
import org.drools.io.ByteArrayResource;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.drools.util.StringUtils.generateUUID;
public class CompositePackageDescrTest {
@@ -31,7 +32,7 @@ public class CompositePackageDescrTest {
private static final String NAMESPACE = "namespace";
private CompositePackageDescr compositePackageDescr;
- @Before
+ @BeforeEach
public void setup() {
compositePackageDescr = new CompositePackageDescr(new ByteArrayResource(), new PackageDescr(NAMESPACE));
}
@@ -50,7 +51,7 @@ public void addPackageDescrSamePkgUUID() {
assertThat(compositePackageDescr.getPreferredPkgUUID().get()).isEqualTo(pkgUUID);
}
- @Test(expected = RuntimeException.class)
+ @Test
public void addPackageDescrDifferentPkgUUID() {
String pkgUUID = generateUUID();
PackageDescr first = new PackageDescr(NAMESPACE);
@@ -64,6 +65,8 @@ public void addPackageDescrDifferentPkgUUID() {
second.setPreferredPkgUUID(pkgUUID);
assertThat(second.getPreferredPkgUUID().isPresent()).isTrue();
assertThat(second.getPreferredPkgUUID().get()).isNotEqualTo(first.getPreferredPkgUUID().get());
- compositePackageDescr.addPackageDescr(new ByteArrayResource(), second);
+ assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> {
+ compositePackageDescr.addPackageDescr(new ByteArrayResource(), second);
+ });
}
}
\ No newline at end of file
diff --git a/drools-compiler/src/test/java/org/drools/compiler/lang/descr/PackageDescrTest.java b/drools-compiler/src/test/java/org/drools/compiler/lang/descr/PackageDescrTest.java
index b5e7cee1202..c79c2c556c8 100644
--- a/drools-compiler/src/test/java/org/drools/compiler/lang/descr/PackageDescrTest.java
+++ b/drools-compiler/src/test/java/org/drools/compiler/lang/descr/PackageDescrTest.java
@@ -27,7 +27,7 @@
import org.drools.drl.ast.descr.PackageDescr;
import org.drools.drl.ast.dsl.PackageDescrBuilder;
import org.drools.drl.ast.dsl.impl.PackageDescrBuilderImpl;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
diff --git a/drools-examples-api/default-kiesession-from-file/pom.xml b/drools-examples-api/default-kiesession-from-file/pom.xml
index c9155eafa17..1d2625481b1 100644
--- a/drools-examples-api/default-kiesession-from-file/pom.xml
+++ b/drools-examples-api/default-kiesession-from-file/pom.xml
@@ -41,12 +41,11 @@
org.drools
drools-engine-classic
-
-
- junit
- junit
- test
-
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
diff --git a/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromByteArrayExampleTest.java b/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromByteArrayExampleTest.java
index 76093b9989c..5735e26adbb 100644
--- a/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromByteArrayExampleTest.java
+++ b/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromByteArrayExampleTest.java
@@ -26,14 +26,14 @@
import java.io.PrintStream;
import java.util.Arrays;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.kie.api.KieServices;
import org.kie.api.builder.KieModule;
import org.kie.api.builder.KieRepository;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieSession;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
public class DefaultKieSessionFromByteArrayExampleTest {
diff --git a/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExampleTest.java b/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExampleTest.java
index 4c5256c239e..b3ab286bad3 100644
--- a/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExampleTest.java
+++ b/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExampleTest.java
@@ -18,12 +18,12 @@
*/
package org.drools.example.api.defaultkiesessionfromfile;
-import org.junit.Test;
-
import java.io.ByteArrayOutputStream;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.PrintStream;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
public class DefaultKieSessionFromFileExampleTest {
diff --git a/drools-examples-api/default-kiesession/pom.xml b/drools-examples-api/default-kiesession/pom.xml
index ba5b8452f3c..9b40e312282 100644
--- a/drools-examples-api/default-kiesession/pom.xml
+++ b/drools-examples-api/default-kiesession/pom.xml
@@ -41,12 +41,11 @@
org.drools
drools-engine-classic
-
-
- junit
- junit
- test
-
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
diff --git a/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExampleTest.java b/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExampleTest.java
index c319068dab2..1767b87961b 100644
--- a/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExampleTest.java
+++ b/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExampleTest.java
@@ -18,12 +18,12 @@
*/
package org.drools.example.api.defaultkiesession;
-import org.junit.Test;
-
import java.io.ByteArrayOutputStream;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.PrintStream;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
public class DefaultKieSessionExampleTest {
diff --git a/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionFromFSExampleTest.java b/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionFromFSExampleTest.java
index 985c3eaaa80..edaf89ea336 100644
--- a/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionFromFSExampleTest.java
+++ b/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionFromFSExampleTest.java
@@ -18,18 +18,18 @@
*/
package org.drools.example.api.defaultkiesession;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.kie.api.KieServices;
import org.kie.api.builder.KieBuilder;
import org.kie.api.runtime.KieSession;
import java.io.ByteArrayOutputStream;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
-import static org.junit.Assert.assertEquals;
-
public class DefaultKieSessionFromFSExampleTest {
private static final String NL = System.getProperty("line.separator");
diff --git a/drools-examples-api/kie-module-from-multiple-files/pom.xml b/drools-examples-api/kie-module-from-multiple-files/pom.xml
index 7cc5e54f7c6..ea3cf74a873 100644
--- a/drools-examples-api/kie-module-from-multiple-files/pom.xml
+++ b/drools-examples-api/kie-module-from-multiple-files/pom.xml
@@ -42,18 +42,17 @@
drools-engine-classic
-
- junit
- junit
- test
-
-
org.drools
kiebase-inclusion
runtime
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
diff --git a/drools-examples-api/kie-module-from-multiple-files/src/test/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExampleTest.java b/drools-examples-api/kie-module-from-multiple-files/src/test/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExampleTest.java
index 403cd9392fb..8245690dd23 100644
--- a/drools-examples-api/kie-module-from-multiple-files/src/test/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExampleTest.java
+++ b/drools-examples-api/kie-module-from-multiple-files/src/test/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExampleTest.java
@@ -18,12 +18,12 @@
*/
package org.drools.example.api.kiemodulefrommultiplefiles;
-import org.junit.Test;
-
import java.io.ByteArrayOutputStream;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.PrintStream;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
public class KieModuleFromMultipleFilesExampleTest {
diff --git a/drools-examples-api/kiebase-inclusion/pom.xml b/drools-examples-api/kiebase-inclusion/pom.xml
index 05ae135c261..25a20d14ea0 100644
--- a/drools-examples-api/kiebase-inclusion/pom.xml
+++ b/drools-examples-api/kiebase-inclusion/pom.xml
@@ -45,11 +45,11 @@
org.drools
named-kiesession
-
- junit
- junit
- test
-
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
diff --git a/drools-examples-api/kiebase-inclusion/src/test/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExampleTest.java b/drools-examples-api/kiebase-inclusion/src/test/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExampleTest.java
index 77804c46fb1..9c779cedc03 100644
--- a/drools-examples-api/kiebase-inclusion/src/test/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExampleTest.java
+++ b/drools-examples-api/kiebase-inclusion/src/test/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExampleTest.java
@@ -18,12 +18,12 @@
*/
package org.drools.example.api.kiebaseinclusion;
-import org.junit.Test;
-
import java.io.ByteArrayOutputStream;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.PrintStream;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
public class KieBaseInclusionExampleTest {
diff --git a/drools-examples-api/kiecontainer-from-kierepo/pom.xml b/drools-examples-api/kiecontainer-from-kierepo/pom.xml
index d55279a5cc4..b0156e4958c 100644
--- a/drools-examples-api/kiecontainer-from-kierepo/pom.xml
+++ b/drools-examples-api/kiecontainer-from-kierepo/pom.xml
@@ -41,6 +41,11 @@
org.kie
kie-ci
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
org.drools
drools-engine-classic
@@ -49,12 +54,6 @@
org.drools
named-kiesession
-
-
- junit
- junit
- test
-
diff --git a/drools-examples-api/kiecontainer-from-kierepo/src/test/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExampleTest.java b/drools-examples-api/kiecontainer-from-kierepo/src/test/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExampleTest.java
index 70da1110b7b..3e24f8b0844 100644
--- a/drools-examples-api/kiecontainer-from-kierepo/src/test/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExampleTest.java
+++ b/drools-examples-api/kiecontainer-from-kierepo/src/test/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExampleTest.java
@@ -18,12 +18,12 @@
*/
package org.drools.example.api.kiecontainerfromkierepo;
-import org.junit.Test;
-
import java.io.ByteArrayOutputStream;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.PrintStream;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
public class KieContainerFromKieRepoExampleTest {
diff --git a/drools-examples-api/kiefilesystem-example/pom.xml b/drools-examples-api/kiefilesystem-example/pom.xml
index d3537b51834..382e65cb7fe 100644
--- a/drools-examples-api/kiefilesystem-example/pom.xml
+++ b/drools-examples-api/kiefilesystem-example/pom.xml
@@ -49,11 +49,11 @@
org.kie
kie-api
-
- junit
- junit
- test
-
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
diff --git a/drools-examples-api/kiefilesystem-example/src/test/java/org/drools/example/api/kiefilesystem/KieFileSystemExampleTest.java b/drools-examples-api/kiefilesystem-example/src/test/java/org/drools/example/api/kiefilesystem/KieFileSystemExampleTest.java
index bc55c5dc4b1..ca973ed355e 100644
--- a/drools-examples-api/kiefilesystem-example/src/test/java/org/drools/example/api/kiefilesystem/KieFileSystemExampleTest.java
+++ b/drools-examples-api/kiefilesystem-example/src/test/java/org/drools/example/api/kiefilesystem/KieFileSystemExampleTest.java
@@ -18,12 +18,12 @@
*/
package org.drools.example.api.kiefilesystem;
-import org.junit.Test;
-
import java.io.ByteArrayOutputStream;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.PrintStream;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
public class KieFileSystemExampleTest {
diff --git a/drools-examples-api/kiemodulemodel-example/pom.xml b/drools-examples-api/kiemodulemodel-example/pom.xml
index fc6b6c3eb4f..6fb2269d926 100644
--- a/drools-examples-api/kiemodulemodel-example/pom.xml
+++ b/drools-examples-api/kiemodulemodel-example/pom.xml
@@ -54,18 +54,17 @@
kie-api
-
- junit
- junit
- test
-
-
org.drools
named-kiesession
runtime
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
org.drools
kiebase-inclusion
diff --git a/drools-examples-api/kiemodulemodel-example/src/test/java/org/drools/example/api/kiemodulemodel/KieModuleModelExampleTest.java b/drools-examples-api/kiemodulemodel-example/src/test/java/org/drools/example/api/kiemodulemodel/KieModuleModelExampleTest.java
index 979a2baa9b4..7974d2f6ee0 100644
--- a/drools-examples-api/kiemodulemodel-example/src/test/java/org/drools/example/api/kiemodulemodel/KieModuleModelExampleTest.java
+++ b/drools-examples-api/kiemodulemodel-example/src/test/java/org/drools/example/api/kiemodulemodel/KieModuleModelExampleTest.java
@@ -18,12 +18,12 @@
*/
package org.drools.example.api.kiemodulemodel;
-import org.junit.Test;
-
import java.io.ByteArrayOutputStream;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.PrintStream;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
public class KieModuleModelExampleTest {
diff --git a/drools-examples-api/multiple-kbases/pom.xml b/drools-examples-api/multiple-kbases/pom.xml
index ad3aa3926c7..f5a8217c42f 100644
--- a/drools-examples-api/multiple-kbases/pom.xml
+++ b/drools-examples-api/multiple-kbases/pom.xml
@@ -41,11 +41,11 @@
org.drools
drools-engine-classic
-
- junit
- junit
- test
-
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
diff --git a/drools-examples-api/multiple-kbases/src/test/java/org/drools/example/api/multiplekbases/MultipleKbasesExampleTest.java b/drools-examples-api/multiple-kbases/src/test/java/org/drools/example/api/multiplekbases/MultipleKbasesExampleTest.java
index a7faa33f89c..8eb9b808743 100644
--- a/drools-examples-api/multiple-kbases/src/test/java/org/drools/example/api/multiplekbases/MultipleKbasesExampleTest.java
+++ b/drools-examples-api/multiple-kbases/src/test/java/org/drools/example/api/multiplekbases/MultipleKbasesExampleTest.java
@@ -23,8 +23,8 @@
import org.drools.core.time.impl.JDKTimerService;
import org.drools.core.time.impl.PseudoClockScheduler;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import org.kie.api.KieServices;
import org.kie.api.builder.model.KieSessionModel;
import org.kie.api.runtime.KieContainer;
@@ -33,8 +33,8 @@
import static java.util.Arrays.asList;
-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 MultipleKbasesExampleTest {
@@ -110,15 +110,15 @@ public void testEditSessionModel() {
ClockTypeOption clockType = kieSessionModel.getClockType();
// clockType realtime
- Assert.assertNotEquals(clockType, pseudoClock);
+ Assertions.assertNotEquals(clockType, pseudoClock);
// change model to pseudo
kieSessionModel.setClockType(pseudoClock);
- Assert.assertEquals(kieSessionModel.getClockType(), pseudoClock);
+ Assertions.assertEquals(kieSessionModel.getClockType(), pseudoClock);
// new pseudo session
KieSession kSession = kContainer.newKieSession(name);
- Assert.assertEquals(kSession.getSessionClock().getClass(), PseudoClockScheduler.class);
+ Assertions.assertEquals(kSession.getSessionClock().getClass(), PseudoClockScheduler.class);
}
@Test
@@ -132,18 +132,18 @@ public void testEditSessionModelAfterFirstCreatedKieSession() {
ClockTypeOption clockType = kieSessionModel.getClockType();
// clockType realtime
- Assert.assertEquals(clockType, ClockTypeOption.REALTIME);
- Assert.assertNotEquals(clockType, pseudoClock);
+ Assertions.assertEquals(clockType, ClockTypeOption.REALTIME);
+ Assertions.assertNotEquals(clockType, pseudoClock);
// session is realtime
KieSession kSession = kContainer.newKieSession(name);
- Assert.assertEquals(kSession.getSessionClock().getClass(), JDKTimerService.class);
+ Assertions.assertEquals(kSession.getSessionClock().getClass(), JDKTimerService.class);
// change model to pseudo
kieSessionModel.setClockType(pseudoClock);
// new session still realtime
KieSession kSessionPseudo = kContainer.newKieSession(name);
- Assert.assertEquals(kSessionPseudo.getSessionClock().getClass(), PseudoClockScheduler.class);
+ Assertions.assertEquals(kSessionPseudo.getSessionClock().getClass(), PseudoClockScheduler.class);
}
}
\ No newline at end of file
diff --git a/drools-examples-api/named-kiesession-from-file/pom.xml b/drools-examples-api/named-kiesession-from-file/pom.xml
index ab0c04a8e78..68f963fa155 100644
--- a/drools-examples-api/named-kiesession-from-file/pom.xml
+++ b/drools-examples-api/named-kiesession-from-file/pom.xml
@@ -42,18 +42,17 @@
drools-engine-classic
-
- junit
- junit
- test
-
-
org.drools
named-kiesession
runtime
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
diff --git a/drools-examples-api/named-kiesession-from-file/src/test/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExampleTest.java b/drools-examples-api/named-kiesession-from-file/src/test/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExampleTest.java
index e2cd2afe1de..db5dec84573 100644
--- a/drools-examples-api/named-kiesession-from-file/src/test/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExampleTest.java
+++ b/drools-examples-api/named-kiesession-from-file/src/test/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExampleTest.java
@@ -18,12 +18,12 @@
*/
package org.drools.example.api.namedkiesessionfromfile;
-import org.junit.Test;
-
import java.io.ByteArrayOutputStream;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.PrintStream;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
public class NamedKieSessionFromFileExampleTest {
private static final String NL = System.getProperty("line.separator");
diff --git a/drools-examples-api/named-kiesession/pom.xml b/drools-examples-api/named-kiesession/pom.xml
index ff558c4a6e1..84860d54ad3 100644
--- a/drools-examples-api/named-kiesession/pom.xml
+++ b/drools-examples-api/named-kiesession/pom.xml
@@ -41,11 +41,11 @@
org.drools
drools-engine-classic
-
- junit
- junit
- test
-
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
diff --git a/drools-examples-api/named-kiesession/src/test/java/org/drools/example/api/namedkiesession/NamedKieSessionExampleTest.java b/drools-examples-api/named-kiesession/src/test/java/org/drools/example/api/namedkiesession/NamedKieSessionExampleTest.java
index 4c22b893351..b5ec7fdda21 100644
--- a/drools-examples-api/named-kiesession/src/test/java/org/drools/example/api/namedkiesession/NamedKieSessionExampleTest.java
+++ b/drools-examples-api/named-kiesession/src/test/java/org/drools/example/api/namedkiesession/NamedKieSessionExampleTest.java
@@ -18,12 +18,12 @@
*/
package org.drools.example.api.namedkiesession;
-import org.junit.Test;
-
import java.io.ByteArrayOutputStream;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.PrintStream;
-import static org.junit.Assert.assertEquals;
+import org.junit.jupiter.api.Test;
public class NamedKieSessionExampleTest {
private static final String NL = System.getProperty("line.separator");
diff --git a/drools-examples-api/pom.xml b/drools-examples-api/pom.xml
index 68742076319..c7b3cef3796 100644
--- a/drools-examples-api/pom.xml
+++ b/drools-examples-api/pom.xml
@@ -59,6 +59,4 @@
multiple-kbases
reactive-kiesession
-
-
diff --git a/drools-examples-api/reactive-kiesession/pom.xml b/drools-examples-api/reactive-kiesession/pom.xml
index b532d6ae6d4..eaa8cae2215 100644
--- a/drools-examples-api/reactive-kiesession/pom.xml
+++ b/drools-examples-api/reactive-kiesession/pom.xml
@@ -41,11 +41,11 @@
org.drools
drools-engine-classic
-
- junit
- junit
- test
-
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
diff --git a/drools-examples-api/reactive-kiesession/src/test/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExampleTest.java b/drools-examples-api/reactive-kiesession/src/test/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExampleTest.java
index 75044ac5f26..0b362777283 100644
--- a/drools-examples-api/reactive-kiesession/src/test/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExampleTest.java
+++ b/drools-examples-api/reactive-kiesession/src/test/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExampleTest.java
@@ -18,7 +18,7 @@
*/
package org.drools.example.api.reactivekiesession;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.kie.api.KieServices;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieSession;
@@ -26,8 +26,8 @@
import java.util.ArrayList;
import java.util.List;
-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 ReactiveKieSessionExampleTest {
diff --git a/drools-fastutil/pom.xml b/drools-fastutil/pom.xml
index 5e453e09b5d..eab48e87ee3 100644
--- a/drools-fastutil/pom.xml
+++ b/drools-fastutil/pom.xml
@@ -49,16 +49,15 @@
org.drools
drools-core
-
-
- junit
- junit
- test
-
org.assertj
assertj-core
test
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
diff --git a/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java b/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java
index bd42b7a9e69..000131b9da7 100644
--- a/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java
+++ b/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java
@@ -33,8 +33,8 @@
import org.drools.core.util.FastIterator;
import org.drools.base.util.IndexedValueReader;
import org.drools.fastutil.FastUtilTreeMemory.TreeFastIterator;
+import org.junit.jupiter.api.Test;
import org.drools.base.util.index.ConstraintTypeOperator;
-import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
diff --git a/drools-kiesession/pom.xml b/drools-kiesession/pom.xml
index 31c361a1500..e9c29a0961f 100644
--- a/drools-kiesession/pom.xml
+++ b/drools-kiesession/pom.xml
@@ -87,12 +87,11 @@
drools-wiring-dynamic
test
-
-
- junit
- junit
- test
-
+
+ org.junit.jupiter
+ junit-jupiter
+ test
+
org.assertj
assertj-core
@@ -104,5 +103,4 @@
test
-
diff --git a/drools-kiesession/src/test/java/org/drools/core/positional/BetaConstraintsPositionalIndexingTest.java b/drools-kiesession/src/test/java/org/drools/core/positional/BetaConstraintsPositionalIndexingTest.java
index 3ae6dd13cfa..71116f22db3 100644
--- a/drools-kiesession/src/test/java/org/drools/core/positional/BetaConstraintsPositionalIndexingTest.java
+++ b/drools-kiesession/src/test/java/org/drools/core/positional/BetaConstraintsPositionalIndexingTest.java
@@ -43,7 +43,7 @@
import org.drools.core.test.model.Person;
import org.drools.core.util.index.IndexSpec;
import org.drools.kiesession.rulebase.SessionsAwareKnowledgeBase;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.kie.api.runtime.KieSession;
import org.kie.internal.conf.CompositeBaseConfiguration;
import static org.assertj.core.api.Assertions.assertThat;
@@ -105,9 +105,8 @@ public void testSingleInputEqualityIndexExpressions() {
};
List