From f25de1912f09ed6d5e3172332913daee1851e704 Mon Sep 17 00:00:00 2001 From: sunil unnava Date: Fri, 31 Aug 2018 11:05:31 -0400 Subject: Remove the username/password check Issue-ID: DMAAP-689 Change-Id: I1b6528bd3aaa2d9d117d0970444123a3c93ac597 Signed-off-by: sunil unnava --- .../java/com/att/nsa/mr/client/impl/MRBaseClientTest.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/test') diff --git a/src/test/java/com/att/nsa/mr/client/impl/MRBaseClientTest.java b/src/test/java/com/att/nsa/mr/client/impl/MRBaseClientTest.java index 56cf954..055c94f 100644 --- a/src/test/java/com/att/nsa/mr/client/impl/MRBaseClientTest.java +++ b/src/test/java/com/att/nsa/mr/client/impl/MRBaseClientTest.java @@ -448,21 +448,11 @@ public class MRBaseClientTest { PowerMockito.when(response.getHeaders()).thenReturn(map); PowerMockito.when(DmaapClientUtil.getResponsewtNoAuth(DmaapClientUtil.getTarget("/path"))).thenReturn(response); - mrBaseClient.getNoAuth("/path", "username", "password", "HTTPAUTH"); + mrBaseClient.getNoAuth("/path"); assertTrue(true); } - @Test(expected = HttpException.class) - public void testGetNoAuth_error() throws JSONException, HttpException { - - ResponseBuilder responseBuilder = Response.ok(); - PowerMockito.when(DmaapClientUtil.getResponsewtNoAuth(DmaapClientUtil.getTarget("/path"))).thenReturn( - responseBuilder.header("transactionid", "transactionid").entity("{\"test\":\"test\"}").build()); - mrBaseClient.getNoAuth("/path", null, null, "HTTPAUTH"); - assertTrue(true); - - } @Test public void testGetHTTPErrorResponseMessage() { -- cgit 1.2.3-korg