diff --git a/partner/partner-management-service/src/test/java/io/mosip/pms/test/oidc/service/impl/ClientManagementServiceImplTest.java b/partner/partner-management-service/src/test/java/io/mosip/pms/test/oidc/service/impl/ClientManagementServiceImplTest.java index 3ab6833843..0373a3c8f0 100644 --- a/partner/partner-management-service/src/test/java/io/mosip/pms/test/oidc/service/impl/ClientManagementServiceImplTest.java +++ b/partner/partner-management-service/src/test/java/io/mosip/pms/test/oidc/service/impl/ClientManagementServiceImplTest.java @@ -5,10 +5,13 @@ import java.util.List; import java.util.Map; +import io.mosip.pms.device.util.AuditUtil; +import io.mosip.pms.oidc.client.contant.ClientServiceAuditEnum; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; +import org.mockito.Mockito; import org.mockito.MockitoAnnotations; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; @@ -56,6 +59,9 @@ public class ClientManagementServiceImplTest { Map public_key; + @MockBean + AuditUtil auditUtil; + @Before public void setUp() { MockitoAnnotations.initMocks(this); @@ -82,11 +88,12 @@ public void createClientTest() throws Exception { request.setAuthPartnerId("authPartnerId"); List clientAuthMethods = new ArrayList(); clientAuthMethods.add("ClientAuthMethod"); - request.setClientAuthMethods(clientAuthMethods);; + request.setClientAuthMethods(clientAuthMethods); request.setGrantTypes(clientAuthMethods); request.setLogoUri("https://testcase.pms.net/browse/OIDCClient.png"); request.setRedirectUris(clientAuthMethods); request.setName("ClientName"); + Mockito.doNothing().when(auditUtil).setAuditRequestDto(Mockito.any(ClientServiceAuditEnum.class)); try { serviceImpl.createOIDCClient(request); }catch (PartnerServiceException e) {