From 1320df00310f70b3cf6695466eb2d76a2d3dc49b Mon Sep 17 00:00:00 2001 From: "Straubs, Ralph (rs8887)" Date: Mon, 11 Nov 2019 11:28:47 -0600 Subject: Add 'DroolsRunnable' class This provides a simple way to run arbitrary Java code within the Drools thread. This change also includes a general way to specify Drools rules that are automatically added to every Drools session. Change-Id: I5ddcca4c807dc552fbcbd4a19dce311a4d358279 Issue-ID: POLICY-1948 Signed-off-by: Straubs, Ralph (rs8887) --- .../controller/internal/MavenDroolsControllerUpgradesTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'policy-management') diff --git a/policy-management/src/test/java/org/onap/policy/drools/controller/internal/MavenDroolsControllerUpgradesTest.java b/policy-management/src/test/java/org/onap/policy/drools/controller/internal/MavenDroolsControllerUpgradesTest.java index 604ddad6..8c8cf977 100644 --- a/policy-management/src/test/java/org/onap/policy/drools/controller/internal/MavenDroolsControllerUpgradesTest.java +++ b/policy-management/src/test/java/org/onap/policy/drools/controller/internal/MavenDroolsControllerUpgradesTest.java @@ -140,7 +140,7 @@ public class MavenDroolsControllerUpgradesTest { assertTrue(running1a.await(30, TimeUnit.SECONDS)); summary(); - assertKie(Arrays.asList("SETUP.1", "VERSION.12"), 1); + assertKie(Arrays.asList("run-drools-runnable", "SETUP.1", "VERSION.12"), 1); controller.updateToVersion( rulesDescriptor2.getGroupId(), @@ -151,7 +151,7 @@ public class MavenDroolsControllerUpgradesTest { assertTrue(running2a.await(30, TimeUnit.SECONDS)); assertTrue(running2b.await(30, TimeUnit.SECONDS)); summary(); - assertKie(Arrays.asList("SETUP.1", "VERSION.12", "SETUP.2", "VERSION.2"), 2); + assertKie(Arrays.asList("run-drools-runnable", "SETUP.1", "VERSION.12", "SETUP.2", "VERSION.2"), 2); controller.updateToVersion( rulesDescriptor1.getGroupId(), @@ -161,7 +161,7 @@ public class MavenDroolsControllerUpgradesTest { assertTrue(running1b.await(30, TimeUnit.SECONDS)); summary(); - assertKie(Arrays.asList("SETUP.1", "VERSION.12"), 1); + assertKie(Arrays.asList("run-drools-runnable", "SETUP.1", "VERSION.12"), 1); } private void summary() { -- cgit 1.2.3-korg