diff options
author | sliard <samuel.liard@gmail.com> | 2021-04-07 17:28:50 +0200 |
---|---|---|
committer | sliard <samuel.liard@gmail.com> | 2021-04-12 16:02:59 +0200 |
commit | 78ebc9a64fac6231e3e594200b9335a4c6372ed1 (patch) | |
tree | 4e48966a35f6cceaac4c00b705e640830e34c634 /src/test/java/org/onap/dmaap/mr/client/impl/MRConstantsTest.java | |
parent | 8a00d4324ea7621df1a1febb8936df2807cbc443 (diff) |
First sonar issues review
Issue-ID: DMAAP-1585
Change-Id: I5dc4d3d4cab75f5fabcc8d4f351eac4d3ea50d17
Signed-off-by: sliard <samuel.liard@gmail.com>
Diffstat (limited to 'src/test/java/org/onap/dmaap/mr/client/impl/MRConstantsTest.java')
-rw-r--r-- | src/test/java/org/onap/dmaap/mr/client/impl/MRConstantsTest.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/test/java/org/onap/dmaap/mr/client/impl/MRConstantsTest.java b/src/test/java/org/onap/dmaap/mr/client/impl/MRConstantsTest.java index 3a427e0..d912f9d 100644 --- a/src/test/java/org/onap/dmaap/mr/client/impl/MRConstantsTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/impl/MRConstantsTest.java @@ -31,8 +31,6 @@ import junit.framework.TestCase; import org.apache.http.HttpHost; import org.junit.Test; -import org.onap.dmaap.mr.client.impl.MRConstants; - public class MRConstantsTest extends TestCase { @Test @@ -98,11 +96,11 @@ public class MRConstantsTest extends TestCase final Iterator<HttpHost> it = hosts.iterator (); final HttpHost first = it.next (); - assertEquals ( MRConstants.kStdMRServicePort, first.getPort () ); + assertEquals ( MRConstants.STD_MR_SERVICE_PORT, first.getPort () ); assertEquals ( "foo", first.getHostName () ); final HttpHost second = it.next (); - assertEquals ( MRConstants.kStdMRServicePort, second.getPort () ); + assertEquals ( MRConstants.STD_MR_SERVICE_PORT, second.getPort () ); assertEquals ( "bar", second.getHostName () ); final HttpHost third = it.next (); @@ -112,11 +110,11 @@ public class MRConstantsTest extends TestCase private static final String[][] hostTests = { - { "host", "host", "" + MRConstants.kStdMRServicePort }, + { "host", "host", "" + MRConstants.STD_MR_SERVICE_PORT}, { ":oops", null, "-1" }, { "host:1.3", null, "-1" }, { "host:13", "host", "13" }, - { "host:", "host", "" + MRConstants.kStdMRServicePort }, + { "host:", "host", "" + MRConstants.STD_MR_SERVICE_PORT}, }; @Test |