aboutsummaryrefslogtreecommitdiffstats
path: root/core/core-engine
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@est.tech>2018-12-21 17:26:57 +0000
committerGerrit Code Review <gerrit@onap.org>2018-12-21 17:26:57 +0000
commita3322831cd5efec598613e8335931944db222e9f (patch)
tree1d6feb90f56cf92df7609174cdbddca85854d493 /core/core-engine
parent89817bf276d95091098dbd7ae9cb357ea4a38836 (diff)
parent4e3bb539cd8a678d8ea1e861c0cf04d472d50d9d (diff)
Merge "Rename test classes in apex-pdp/model,core"
Diffstat (limited to 'core/core-engine')
-rw-r--r--core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/ApexEngineImplTest.java6
-rw-r--r--core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/DummyEnEventListener.java (renamed from core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/BadListener.java)2
-rw-r--r--core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/DummySlowEnEventListener.java (renamed from core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/SlowListener.java)2
3 files changed, 5 insertions, 5 deletions
diff --git a/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/ApexEngineImplTest.java b/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/ApexEngineImplTest.java
index 2a80cf06b..6d35adc54 100644
--- a/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/ApexEngineImplTest.java
+++ b/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/ApexEngineImplTest.java
@@ -371,7 +371,7 @@ public class ApexEngineImplTest {
}
try {
- engine.addEventListener("badListener", new BadListener());
+ engine.addEventListener("badListener", new DummyEnEventListener());
} catch (Exception e) {
fail("test should not throw an exception");
}
@@ -394,7 +394,7 @@ public class ApexEngineImplTest {
try {
engine.removeEventListener("badListener");
- engine.addEventListener("slowListener", new SlowListener());
+ engine.addEventListener("slowListener", new DummySlowEnEventListener());
} catch (Exception e) {
fail("test should not throw an exception");
}
@@ -414,7 +414,7 @@ public class ApexEngineImplTest {
fail("test should not throw an exception");
}
- SlowListener slowListener = new SlowListener();
+ DummySlowEnEventListener slowListener = new DummySlowEnEventListener();
try {
engine.addEventListener("slowListener", slowListener);
} catch (Exception e) {
diff --git a/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/BadListener.java b/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/DummyEnEventListener.java
index b829437d6..e67d256fe 100644
--- a/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/BadListener.java
+++ b/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/DummyEnEventListener.java
@@ -28,7 +28,7 @@ import org.onap.policy.apex.model.basicmodel.concepts.ApexException;
* Dummy engine event listener for unit test.
*
*/
-public class BadListener implements EnEventListener {
+public class DummyEnEventListener implements EnEventListener {
/*
* (non-Javadoc)
diff --git a/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/SlowListener.java b/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/DummySlowEnEventListener.java
index f3f885911..fbb38c99e 100644
--- a/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/SlowListener.java
+++ b/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/engine/impl/DummySlowEnEventListener.java
@@ -28,7 +28,7 @@ import org.onap.policy.apex.model.basicmodel.concepts.ApexException;
* Dummy engine event listener for unit test.
*
*/
-public class SlowListener implements EnEventListener {
+public class DummySlowEnEventListener implements EnEventListener {
private long waitTime;