summaryrefslogtreecommitdiffstats
path: root/cadi/client/src/test/java
diff options
context:
space:
mode:
authorMaciej Wejs <maciej.wejs@nokia.com>2018-07-10 14:06:13 +0200
committerMaciej Wejs <maciej.wejs@nokia.com>2018-07-10 15:21:01 +0200
commitbe1490c9941e6cd517b1f2cdbcea7db5d78748ca (patch)
treeb878106f6bfd9899ba7b6f6c6b16b5956f11ca8f /cadi/client/src/test/java
parentd37b5467a3b8b375b603579d2888a4443a8b06a7 (diff)
System dependent separators in JU tests
Change-Id: I6795074d6cdec24821f465504e3d20bc4cc68eaf Issue-ID: AAF-387 Signed-off-by: Maciej Wejs <maciej.wejs@nokia.com>
Diffstat (limited to 'cadi/client/src/test/java')
-rw-r--r--cadi/client/src/test/java/org/onap/aaf/cadi/locator/test/JU_HClientHotPeerLocator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cadi/client/src/test/java/org/onap/aaf/cadi/locator/test/JU_HClientHotPeerLocator.java b/cadi/client/src/test/java/org/onap/aaf/cadi/locator/test/JU_HClientHotPeerLocator.java
index 1478cafe..81140d23 100644
--- a/cadi/client/src/test/java/org/onap/aaf/cadi/locator/test/JU_HClientHotPeerLocator.java
+++ b/cadi/client/src/test/java/org/onap/aaf/cadi/locator/test/JU_HClientHotPeerLocator.java
@@ -64,7 +64,7 @@ public class JU_HClientHotPeerLocator {
loc = new HClientHotPeerLocator(access, urlStr, 0, "38.627", "-90.199", ssMock);
assertThat(loc.hasItems(), is(true));
- String[] messages = outStream.toString().split("\n");
+ String[] messages = outStream.toString().split(System.lineSeparator());
String preffered = messages[0].split(" ", 4)[3];
String alternate = messages[1].split(" ", 4)[3];
assertThat(preffered, is("Preferred Client is " + goodURL1));
@@ -97,7 +97,7 @@ public class JU_HClientHotPeerLocator {
HClientHotPeerLocator loc;
String urlStr = goodURL1 + ',' + goodURL2 + ',' + badURL;
loc = new HClientHotPeerLocator(access, urlStr, 1000000, "38.627", "-90.199", ssMock);
- String[] messages = outStream.toString().split("\n");
+ String[] messages = outStream.toString().split(System.lineSeparator());
String preffered = messages[0].split(" ", 4)[3];
String alternate1 = messages[1].split(" ", 4)[3];
String alternate2 = messages[2].split(" ", 4)[3];