From fbaa64353a39526842d67c84ed541a2d5b12e874 Mon Sep 17 00:00:00 2001 From: "Ritik Jain (IN74108)" Date: Tue, 16 Apr 2024 11:17:48 +0530 Subject: [PATCH] removed unwanted stubbing --- .../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 ceda8fd7c41..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);