diff options
Diffstat (limited to 'core/core-infrastructure/src')
2 files changed, 4 insertions, 8 deletions
diff --git a/core/core-infrastructure/src/test/java/org/onap/policy/apex/core/infrastructure/messaging/EndToEndStringMessagingTest.java b/core/core-infrastructure/src/test/java/org/onap/policy/apex/core/infrastructure/messaging/EndToEndStringMessagingTest.java index d9691f17e..5a1390163 100644 --- a/core/core-infrastructure/src/test/java/org/onap/policy/apex/core/infrastructure/messaging/EndToEndStringMessagingTest.java +++ b/core/core-infrastructure/src/test/java/org/onap/policy/apex/core/infrastructure/messaging/EndToEndStringMessagingTest.java @@ -25,6 +25,8 @@ import static org.awaitility.Awaitility.await; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; +import java.util.concurrent.TimeUnit; + import org.junit.Test; import org.onap.policy.apex.core.infrastructure.messaging.stringmessaging.WsStringMessageClient; import org.onap.policy.apex.core.infrastructure.messaging.stringmessaging.WsStringMessageListener; @@ -32,8 +34,6 @@ import org.onap.policy.apex.core.infrastructure.messaging.stringmessaging.WsStri import org.slf4j.ext.XLogger; import org.slf4j.ext.XLoggerFactory; -import java.util.concurrent.TimeUnit; - /** * The Class EndToEndMessagingTest. * diff --git a/core/core-infrastructure/src/test/java/org/onap/policy/apex/core/infrastructure/threading/ThreadingTestThread.java b/core/core-infrastructure/src/test/java/org/onap/policy/apex/core/infrastructure/threading/ThreadingTestThread.java index a2c51539f..ee2212159 100644 --- a/core/core-infrastructure/src/test/java/org/onap/policy/apex/core/infrastructure/threading/ThreadingTestThread.java +++ b/core/core-infrastructure/src/test/java/org/onap/policy/apex/core/infrastructure/threading/ThreadingTestThread.java @@ -24,8 +24,6 @@ package org.onap.policy.apex.core.infrastructure.threading; import org.slf4j.ext.XLogger; import org.slf4j.ext.XLoggerFactory; -import java.util.concurrent.CountDownLatch; - /** * The Class ThreadingTestThread. * @@ -42,9 +40,7 @@ public class ThreadingTestThread implements Runnable { private String threadName; - private CountDownLatch latch = new CountDownLatch(1); - - /** + /** * {@inheritDoc}. */ @Override @@ -59,7 +55,7 @@ public class ThreadingTestThread implements Runnable { if (logger.isDebugEnabled()) { logger.debug("in threading test thread \"" + threadName + "\", counter=" + counter + " . . ."); } - if(!ThreadUtilities.sleep(50)) { + if (!ThreadUtilities.sleep(50)) { interrupted = true; } } |