From be1490c9941e6cd517b1f2cdbcea7db5d78748ca Mon Sep 17 00:00:00 2001 From: Maciej Wejs Date: Tue, 10 Jul 2018 14:06:13 +0200 Subject: System dependent separators in JU tests Change-Id: I6795074d6cdec24821f465504e3d20bc4cc68eaf Issue-ID: AAF-387 Signed-off-by: Maciej Wejs --- .../java/org/onap/aaf/cadi/locator/test/JU_HClientHotPeerLocator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cadi/client/src/test/java') 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]; -- cgit 1.2.3-korg