summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-04-26 11:20:50 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-26 11:20:50 +0000
commit37eebe9e6c814e4756443bf9d6f10afe9954aef6 (patch)
treebaf4e0de161486bc4ee55485168ed08a7fee3d2b
parent693138b08a04a8027de64dc093e872bac963630a (diff)
parent06890d6ab0b7b11eb3fa5a76234195a376b3854c (diff)
Merge "Remove unit test Java version dependency"
-rw-r--r--BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/NexusRestWrapperTest.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/NexusRestWrapperTest.java b/BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/NexusRestWrapperTest.java
index bc666fb08..60adecd41 100644
--- a/BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/NexusRestWrapperTest.java
+++ b/BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/NexusRestWrapperTest.java
@@ -103,8 +103,7 @@ public class NexusRestWrapperTest {
fail("test shold throw an exception here");
} catch (NexusRestWrapperException e) {
assertEquals("search to URI http://localhost:99999/service/local/lucene/search?g=org.onap.policy.engine "
- + "failed with message: java.lang.IllegalArgumentException: port out of range:99999",
- e.getMessage());
+ + "failed with message: ", e.getMessage().substring(0, 111));
}
wrapper.close();
@@ -118,8 +117,7 @@ public class NexusRestWrapperTest {
fail("test shold throw an exception here");
} catch (NexusRestWrapperException e) {
assertEquals("search to URI http://localhost:57344/service/local/lucene/search?g=org.onap.policy.engine "
- + "failed with message: java.net.ConnectException: Connection refused (Connection refused)",
- e.getMessage());
+ + "failed with message: ", e.getMessage().substring(0, 111));
}
wrapper.close();