Merge "Remove unit test Java version dependency"
authorPamela Dragosh <pdragosh@research.att.com>
Thu, 26 Apr 2018 11:20:50 +0000 (11:20 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 26 Apr 2018 11:20:50 +0000 (11:20 +0000)
BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/NexusRestWrapperTest.java

index bc666fb..60adecd 100644 (file)
@@ -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();