From f34f704143a8dc9ff54092f690d08c41fb43301c Mon Sep 17 00:00:00 2001 From: Paolo Bizzarri Date: Fri, 29 Nov 2024 17:41:29 +0100 Subject: [PATCH] Migrated drools retediagram to JUnit5 --- drools-retediagram/pom.xml | 6 +++--- .../src/test/java/org/drools/retediagram/RuleTest.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drools-retediagram/pom.xml b/drools-retediagram/pom.xml index e1b9122311d..4096b9c59de 100644 --- a/drools-retediagram/pom.xml +++ b/drools-retediagram/pom.xml @@ -74,10 +74,10 @@ - junit - junit + org.junit.jupiter + junit-jupiter test - + org.assertj assertj-core diff --git a/drools-retediagram/src/test/java/org/drools/retediagram/RuleTest.java b/drools-retediagram/src/test/java/org/drools/retediagram/RuleTest.java index 1a34e81bd58..729eb6da06d 100644 --- a/drools-retediagram/src/test/java/org/drools/retediagram/RuleTest.java +++ b/drools-retediagram/src/test/java/org/drools/retediagram/RuleTest.java @@ -29,8 +29,8 @@ import org.drools.mvel.CommonTestMethodBase; import org.drools.retediagram.ReteDiagram.Layout; import org.drools.retediagram.model.Measurement; -import org.junit.BeforeClass; -import org.junit.Test; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; import org.kie.api.KieBase; import org.kie.api.event.rule.DebugAgendaEventListener; import org.kie.api.io.ResourceType; @@ -47,7 +47,7 @@ public class RuleTest extends CommonTestMethodBase { static final Logger LOG = LoggerFactory.getLogger(RuleTest.class); - @BeforeClass + @BeforeAll public static void init() { // route dependencies using java util Logging to slf4j SLF4JBridgeHandler.removeHandlersForRootLogger(); SLF4JBridgeHandler.install();