diff options
author | Instrumental <jonathan.gathman@att.com> | 2019-03-07 12:58:39 -0600 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2019-03-07 12:58:54 -0600 |
commit | a174f8ddbc5eb78a648fb68b33ef18cb64d81fda (patch) | |
tree | d27c01bcd63fd6a7bff00687c6f33423a3a40e8c /cadi/client/src/test | |
parent | 9dc1cd2632d1dda9c8f072e99616e73e0517f1aa (diff) |
Improve Batches
Issue-ID: AAF-740
Change-Id: Ib3e8a3f977964eed2e992dc02154dd3bc90492df
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'cadi/client/src/test')
-rw-r--r-- | cadi/client/src/test/java/org/onap/aaf/cadi/locator/test/JU_HClientHotPeerLocator.java | 10 |
1 files changed, 5 insertions, 5 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 e40ecb6e..d85a84a2 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 @@ -65,8 +65,8 @@ public class JU_HClientHotPeerLocator { assertThat(loc.hasItems(), is(true)); String[] messages = outStream.toString().split(System.lineSeparator()); - String preffered = messages[0].split(" ", 4)[3]; - String alternate = messages[1].split(" ", 4)[3]; + String preffered = messages[2].split(" ", 4)[3]; + String alternate = messages[3].split(" ", 4)[3]; assertThat(preffered, is("Preferred Client is " + goodURL1)); assertThat(alternate, is("Alternate Client is " + goodURL2)); @@ -98,9 +98,9 @@ public class JU_HClientHotPeerLocator { String urlStr = goodURL1 + ',' + goodURL2 + ',' + badURL; loc = new HClientHotPeerLocator(access, urlStr, 1000000, "38.627", "-90.199", ssMock); 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]; + String preffered = messages[2].split(" ", 4)[3]; + String alternate1 = messages[3].split(" ", 4)[3]; + String alternate2 = messages[4].split(" ", 4)[3]; assertThat(preffered, is("Preferred Client is " + badURL)); assertThat(alternate1, is("Alternate Client is " + goodURL1)); assertThat(alternate2, is("Alternate Client is " + goodURL2)); |