Skip to content

Commit

Permalink
Fixed test case failures
Browse files Browse the repository at this point in the history
Signed-off-by: Balaji <[email protected]>
  • Loading branch information
balaji-alluru committed Jan 24, 2024
1 parent cc17b9a commit 58aed32
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
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;
Expand Down Expand Up @@ -80,6 +81,9 @@ public class ClientManagementServiceImplTest {

@MockBean
private RestUtil restUtil;

@MockBean
private AuditUtil auditUtil;

@Mock
private ObjectMapper objectMapper;
Expand Down Expand Up @@ -120,6 +124,7 @@ public void createClientTest() throws Exception {
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) {
Expand Down

0 comments on commit 58aed32

Please sign in to comment.