diff options
author | Arindam Mondal <arind.mondal@samsung.com> | 2019-03-15 18:54:33 +0900 |
---|---|---|
committer | arind.mondal <arind.mondal@samsung.com> | 2019-03-15 18:55:09 +0900 |
commit | 2ce8d15a4d5c03bb4f2f676114c466b61c4a3188 (patch) | |
tree | fbcffa5254cee1994a98a8419e5f04bd7566a2e2 /src/test | |
parent | 818d445756d518be0f09706677f402b9d567d70b (diff) |
Sonar fix too many method param
Issue-ID: DMAAP-1099
Change-Id: Id659edc743c76e8a56cbb39d0185bff5c50f36a3
Signed-off-by: Arindam Mondal <arind.mondal@samsung.com>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/onap/dmaap/mr/client/impl/MRBaseClientTest.java | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/test/java/org/onap/dmaap/mr/client/impl/MRBaseClientTest.java b/src/test/java/org/onap/dmaap/mr/client/impl/MRBaseClientTest.java index 6279d82..38c7f8a 100644 --- a/src/test/java/org/onap/dmaap/mr/client/impl/MRBaseClientTest.java +++ b/src/test/java/org/onap/dmaap/mr/client/impl/MRBaseClientTest.java @@ -251,8 +251,14 @@ public class MRBaseClientTest { "password", new String("{\"test\":\"test\"}").getBytes(), "application/json")) .thenReturn(response); - mrBaseClient.postAuth("/path", new String("{\"test\":\"test\"}").getBytes(), "application/json", "username", - "password", "username", "password", "HTTPAUTH"); + mrBaseClient.postAuth(new PostAuthDataObject().setPath("/path") + .setData( new String("{\"test\":\"test\"}").getBytes()) + .setContentType("application/json") + .setAuthKey("username") + .setAuthDate("password") + .setUsername("username") + .setPassword("password") + .setProtocolFlag("HTTPAUTH")); assertTrue(true); } @@ -266,9 +272,16 @@ public class MRBaseClientTest { "password", new String("{\"test\":\"test\"}").getBytes(), "application/json")) .thenReturn( responseBuilder.header("transactionid", "transactionid").entity("{\"test\":\"test\"}").build()); - - mrBaseClient.postAuth("/path", new String("{\"test\":\"test\"}").getBytes(), "application/json", null, null, - null, null, "HTTPAUTH"); + + mrBaseClient.postAuth(new PostAuthDataObject().setPath("/path") + .setData( new String("{\"test\":\"test\"}").getBytes()) + .setContentType("application/json") + .setAuthKey(null) + .setAuthDate(null) + .setUsername(null) + .setPassword(null) + .setProtocolFlag("HTTPAUTH")); + assertTrue(true); } |