From 61390ecfe4b4a62b59a7141b0e453877cd30c43e Mon Sep 17 00:00:00 2001 From: Venkata Saidurga Polamraju Date: Mon, 26 Feb 2024 17:18:08 +0530 Subject: [PATCH] [ES-834] Signed-off-by: Venkata Saidurga Polamraju --- .../service/IdaAuditPluginImplTest.java | 15 --------------- 1 file changed, 15 deletions(-) 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);