diff --git a/authentication/esignet-integration-impl/src/test/java/io/mosip/authentication/esignet/integration/service/IdaAuditPluginImplTest.java b/authentication/esignet-integration-impl/src/test/java/io/mosip/authentication/esignet/integration/service/IdaAuditPluginImplTest.java index b93fef7e88d..9dc267df614 100644 --- a/authentication/esignet-integration-impl/src/test/java/io/mosip/authentication/esignet/integration/service/IdaAuditPluginImplTest.java +++ b/authentication/esignet-integration-impl/src/test/java/io/mosip/authentication/esignet/integration/service/IdaAuditPluginImplTest.java @@ -95,11 +95,6 @@ public void logAudit_WithValidStatus_ThenPass() throws Exception { new ParameterizedTypeReference() { }; Mockito.when(authTransactionHelper.getAuthToken()).thenReturn("authToken"); -// Mockito.when(objectMapper.writeValueAsString(any())).thenReturn("requestBody"); -// Mockito.when(restTemplate.exchange( -// Mockito.any(RequestEntity.class), -// Mockito.eq(responseType) -// )).thenReturn(responseEntity); try { idaAuditPlugin.logAudit(username,action, status, auditDTO, null); Assert.assertTrue(true); @@ -120,11 +115,6 @@ public void logAudit_WithUnauthorizedStatus_ThenPass() throws Exception { new ParameterizedTypeReference() { }; Mockito.when(authTransactionHelper.getAuthToken()).thenReturn("authToken"); -// Mockito.when(objectMapper.writeValueAsString(any())).thenReturn("requestBody"); -// Mockito.when(restTemplate.exchange( -// Mockito.any(RequestEntity.class), -// Mockito.eq(responseType) -// )).thenReturn(responseEntity); try { idaAuditPlugin.logAudit(username,action, status, auditDTO, null); Assert.assertTrue(true); @@ -145,11 +135,6 @@ public void logAudit_WithForbiddenStatus_ThenPass() throws Exception { new ParameterizedTypeReference() { }; Mockito.when(authTransactionHelper.getAuthToken()).thenReturn("authToken"); -// Mockito.when(objectMapper.writeValueAsString(any())).thenReturn("requestBody"); -// Mockito.when(restTemplate.exchange( -// Mockito.any(RequestEntity.class), -// Mockito.eq(responseType) -// )).thenReturn(responseEntity); try { idaAuditPlugin.logAudit(username,action, status, auditDTO, null); Assert.assertTrue(true);