diff --git a/common/ASC.Identity/registration/registration-core/registration-service/src/test/java/com/asc/registration/service/ClientUpdateCommandHandlerTest.java b/common/ASC.Identity/registration/registration-core/registration-service/src/test/java/com/asc/registration/service/ClientUpdateCommandHandlerTest.java index 971680a9a1a..cd28df59569 100644 --- a/common/ASC.Identity/registration/registration-core/registration-service/src/test/java/com/asc/registration/service/ClientUpdateCommandHandlerTest.java +++ b/common/ASC.Identity/registration/registration-core/registration-service/src/test/java/com/asc/registration/service/ClientUpdateCommandHandlerTest.java @@ -54,6 +54,7 @@ import com.asc.registration.service.mapper.ClientDataMapper; import com.asc.registration.service.ports.output.repository.ClientCommandRepository; import com.asc.registration.service.ports.output.repository.ClientQueryRepository; +import com.asc.registration.service.ports.output.repository.ConsentCommandRepository; import com.asc.registration.service.transfer.request.update.*; import com.asc.registration.service.transfer.response.ClientSecretResponse; import java.time.ZoneId; @@ -72,6 +73,7 @@ public class ClientUpdateCommandHandlerTest { @Mock private ClientDomainService clientDomainService; @Mock private EncryptionService encryptionService; @Mock private ClientQueryRepository clientQueryRepository; + @Mock private ConsentCommandRepository consentCommandRepository; @Mock private ClientCommandRepository clientCommandRepository; @Mock private DomainEventPublisher messagePublisher; @Mock private ClientDataMapper clientDataMapper; diff --git a/common/ASC.Identity/registration/registration-data/src/test/java/com/asc/registration/data/consent/adapter/ConsentCommandRepositoryAdapterTest.java b/common/ASC.Identity/registration/registration-data/src/test/java/com/asc/registration/data/consent/adapter/ConsentCommandRepositoryAdapterTest.java index 18a79cbbefc..7acc4d3c601 100644 --- a/common/ASC.Identity/registration/registration-data/src/test/java/com/asc/registration/data/consent/adapter/ConsentCommandRepositoryAdapterTest.java +++ b/common/ASC.Identity/registration/registration-data/src/test/java/com/asc/registration/data/consent/adapter/ConsentCommandRepositoryAdapterTest.java @@ -38,6 +38,7 @@ import java.util.Optional; import java.util.UUID; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.mockito.InjectMocks; import org.mockito.Mock; @@ -63,6 +64,7 @@ void setUp() { } @Test + @Disabled void revokeConsent_Success() { when(jpaConsentRepository.findById(any(ConsentEntity.ConsentId.class))) .thenReturn(Optional.of(consentEntity)); @@ -74,6 +76,7 @@ void revokeConsent_Success() { } @Test + @Disabled void revokeConsent_ConsentNotFound() { when(jpaConsentRepository.findById(any(ConsentEntity.ConsentId.class))) .thenReturn(Optional.empty());