aboutsummaryrefslogtreecommitdiffstats
path: root/core/core-engine/src/test
diff options
context:
space:
mode:
authorParshad Patel <pars.patel@samsung.com>2018-12-21 15:36:35 +0900
committerParshad Patel <pars.patel@samsung.com>2018-12-21 15:43:34 +0900
commit4e3bb539cd8a678d8ea1e861c0cf04d472d50d9d (patch)
tree949d8dd3685218c75d888ca56b779bfa46a12919 /core/core-engine/src/test
parentb70b381538d2c6fca65530538b36c8f8fdebd104 (diff)
Rename test classes in apex-pdp/model,core
Make test classes name consitence by adding 'Test' at end of junit test classes and adding 'Support' or 'Dummy' at start of util or dummy type of test classes Issue-ID: POLICY-1263 Change-Id: I6cb8d09799d7abd1b50ead1edbc4986649ad4ba7 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
Diffstat (limited to 'core/core-engine/src/test')
-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;