summaryrefslogtreecommitdiffstats
path: root/PolicyEngineAPI/src/main
diff options
context:
space:
mode:
authorpa834y <pa834y@att.com>2018-04-27 20:13:24 -0400
committerliamfallon <liam.fallon@ericsson.com>2018-05-01 14:16:56 +0100
commit6cf6acc675589e271e4e3d1256a7e04eb7bf8a27 (patch)
tree196143e701976caaba52e40d9809018da022583a /PolicyEngineAPI/src/main
parent3eab022023bd68eee6743e30dd7db21c256bf00b (diff)
Remove sysout from junit and disable assert.
Updated BRMS Gateway junit tests to be less strict on hit counts on queries to Nexus. Draft version passed build son now submitting as full submission. Change-Id: Iab81d14be69835faefbb96fb0af17b3f3759575b Issue-ID: POLICY-756 Signed-off-by: pa834y <pa834y@att.com> Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'PolicyEngineAPI/src/main')
-rw-r--r--PolicyEngineAPI/src/main/java/org/onap/policy/std/AutoClientEnd.java4
-rw-r--r--PolicyEngineAPI/src/main/java/org/onap/policy/std/ManualClientEnd.java1
2 files changed, 4 insertions, 1 deletions
diff --git a/PolicyEngineAPI/src/main/java/org/onap/policy/std/AutoClientEnd.java b/PolicyEngineAPI/src/main/java/org/onap/policy/std/AutoClientEnd.java
index 00c8c5f0a..aabda96c8 100644
--- a/PolicyEngineAPI/src/main/java/org/onap/policy/std/AutoClientEnd.java
+++ b/PolicyEngineAPI/src/main/java/org/onap/policy/std/AutoClientEnd.java
@@ -148,6 +148,7 @@ public class AutoClientEnd extends WebSocketClient {
try {
logger.info("Starting Auto Notification with the PDP server : " + url);
client = new AutoClientEnd(new URI(url + "notifications"));
+ client.setConnectionLostTimeout(0);
client.connect();
status = true;
restartExecutorService = Executors.newSingleThreadScheduledExecutor();
@@ -212,6 +213,7 @@ public class AutoClientEnd extends WebSocketClient {
}
private static void callHandler() {
+ logger.info("AutoClientEnd: In callHandler");
if (handler == null || scheme == null) {
return;
}
@@ -245,4 +247,4 @@ public class AutoClientEnd extends WebSocketClient {
}
}
}
-}
+} \ No newline at end of file
diff --git a/PolicyEngineAPI/src/main/java/org/onap/policy/std/ManualClientEnd.java b/PolicyEngineAPI/src/main/java/org/onap/policy/std/ManualClientEnd.java
index a67b5402e..778acd716 100644
--- a/PolicyEngineAPI/src/main/java/org/onap/policy/std/ManualClientEnd.java
+++ b/PolicyEngineAPI/src/main/java/org/onap/policy/std/ManualClientEnd.java
@@ -90,6 +90,7 @@ public class ManualClientEnd extends WebSocketClient {
try {
client = new ManualClientEnd(new URI(url + "notifications"));
+ client.setConnectionLostTimeout(0);
client.connect();
latch.await();
client.closeBlocking();