diff options
author | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2020-06-15 13:43:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-06-15 13:43:40 +0000 |
commit | 73470fb02d3d8a2fb37e80d9fb23a75955da32b5 (patch) | |
tree | 6460addf563cefb9264f7dd4fd3a847238b862cd /examples/examples-aadm/src/test/java/org | |
parent | 808600494c5cd0f7b83460dac45d12b3ca14fd57 (diff) | |
parent | 718a1611a1e580ed7874088e1a0e013416334989 (diff) |
Merge "Improve robustness of unit testing"
Diffstat (limited to 'examples/examples-aadm/src/test/java/org')
-rw-r--r-- | examples/examples-aadm/src/test/java/org/onap/policy/apex/examples/aadm/TestApexActionListener.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/examples-aadm/src/test/java/org/onap/policy/apex/examples/aadm/TestApexActionListener.java b/examples/examples-aadm/src/test/java/org/onap/policy/apex/examples/aadm/TestApexActionListener.java index 11a755653..00cf98a93 100644 --- a/examples/examples-aadm/src/test/java/org/onap/policy/apex/examples/aadm/TestApexActionListener.java +++ b/examples/examples-aadm/src/test/java/org/onap/policy/apex/examples/aadm/TestApexActionListener.java @@ -21,12 +21,8 @@ package org.onap.policy.apex.examples.aadm; -import static org.awaitility.Awaitility.await; - import java.util.ArrayList; import java.util.List; -import java.util.concurrent.TimeUnit; - import org.onap.policy.apex.core.engine.engine.EnEventListener; import org.onap.policy.apex.core.engine.event.EnEvent; @@ -58,7 +54,6 @@ public class TestApexActionListener implements EnEventListener { * @return the result */ public EnEvent getResult() { - await().atLeast(100, TimeUnit.MILLISECONDS).until(() -> !resultEvents.isEmpty()); return resultEvents.remove(0); } @@ -67,8 +62,6 @@ public class TestApexActionListener implements EnEventListener { */ @Override public void onEnEvent(final EnEvent actionEvent) { - await().atLeast(100, TimeUnit.MILLISECONDS).until(() -> actionEvent != null); - System.out.println("Action event from engine:" + actionEvent.getName()); resultEvents.add(actionEvent); } |