diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/BadRequestsTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/BadRequestsTest.java index 78bf31bf68..c84b98a7af 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/BadRequestsTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/BadRequestsTest.java @@ -3,13 +3,11 @@ import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import uk.gov.hmcts.reform.iacaseapi.component.testutils.SpringBootIntegrationTest; -@Disabled class BadRequestsTest extends SpringBootIntegrationTest { private static final String ABOUT_TO_SUBMIT_PATH = "/asylum/ccdAboutToSubmit"; diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/AddCaseNoteTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/AddCaseNoteTest.java index e16ab1110c..f30d7539a9 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/AddCaseNoteTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/AddCaseNoteTest.java @@ -11,7 +11,6 @@ import java.util.List; import java.util.Optional; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.security.test.context.support.WithMockUser; import uk.gov.hmcts.reform.iacaseapi.component.testutils.SpringBootIntegrationTest; @@ -21,7 +20,6 @@ import uk.gov.hmcts.reform.iacaseapi.domain.entities.CaseNote; import uk.gov.hmcts.reform.iacaseapi.domain.entities.ccd.field.IdValue; -@Disabled class AddCaseNoteTest extends SpringBootIntegrationTest implements WithUserDetailsStub { @Test diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/GenerateDecisionAndReasonsTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/GenerateDecisionAndReasonsTest.java index efd5f978e0..7c3863d741 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/GenerateDecisionAndReasonsTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/GenerateDecisionAndReasonsTest.java @@ -10,7 +10,6 @@ import static uk.gov.hmcts.reform.iacaseapi.domain.entities.ccd.State.DECISION; import static uk.gov.hmcts.reform.iacaseapi.domain.entities.ccd.field.YesOrNo.YES; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.springframework.boot.test.mock.mockito.MockBean; @@ -25,7 +24,6 @@ import uk.gov.hmcts.reform.iacaseapi.domain.entities.ccd.field.YesOrNo; import uk.gov.hmcts.reform.iacaseapi.domain.service.FeatureToggler; -@Disabled class GenerateDecisionAndReasonsTest extends SpringBootIntegrationTest implements WithServiceAuthStub, WithDocumentApiStub { diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/NewShareACaseCcdIntegrationTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/NewShareACaseCcdIntegrationTest.java index 058e970fdc..520cbf5790 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/NewShareACaseCcdIntegrationTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/NewShareACaseCcdIntegrationTest.java @@ -13,7 +13,6 @@ import java.nio.file.Paths; import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.core.io.Resource; import org.springframework.security.test.context.support.WithMockUser; @@ -22,7 +21,6 @@ import uk.gov.hmcts.reform.iacaseapi.domain.entities.AppealType; @Slf4j -@Disabled class NewShareACaseCcdIntegrationTest extends SpringBootIntegrationTest implements WithServiceAuthStub, WithCcdAssignmentsStub, WithAcaAssignmentsStub, WithUserDetailsStub, WithReferenceDataStub { diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/RecordAttendeesAndDurationTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/RecordAttendeesAndDurationTest.java index 5e5e665f54..f47ec6eea5 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/RecordAttendeesAndDurationTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/RecordAttendeesAndDurationTest.java @@ -11,7 +11,6 @@ import com.launchdarkly.sdk.LDValue; import java.util.Optional; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.springframework.boot.test.mock.mockito.MockBean; @@ -28,7 +27,6 @@ import uk.gov.hmcts.reform.iacaseapi.domain.entities.ccd.field.YesOrNo; import uk.gov.hmcts.reform.iacaseapi.domain.service.FeatureToggler; -@Disabled class RecordAttendeesAndDurationTest extends SpringBootIntegrationTest implements WithServiceAuthStub { @MockBean diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/ShareACaseCcdIntegrationTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/ShareACaseCcdIntegrationTest.java index cc6e24a8eb..08044c442f 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/ShareACaseCcdIntegrationTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/ShareACaseCcdIntegrationTest.java @@ -18,7 +18,6 @@ import lombok.extern.slf4j.Slf4j; import org.assertj.core.util.Lists; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.core.io.Resource; import org.springframework.security.test.context.support.WithMockUser; @@ -33,7 +32,6 @@ import uk.gov.hmcts.reform.iacaseapi.domain.entities.Value; @Slf4j -@Disabled class ShareACaseCcdIntegrationTest extends SpringBootIntegrationTest implements WithServiceAuthStub, WithUserDetailsStub, WithReferenceDataStub { diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/ShareACaseRefDataIntegrationTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/ShareACaseRefDataIntegrationTest.java index 560cc04c93..85a5e0d60d 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/ShareACaseRefDataIntegrationTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/component/ShareACaseRefDataIntegrationTest.java @@ -17,7 +17,6 @@ import lombok.SneakyThrows; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.core.io.Resource; import org.springframework.security.test.context.support.WithMockUser; @@ -29,7 +28,6 @@ import uk.gov.hmcts.reform.iacaseapi.domain.entities.*; import uk.gov.hmcts.reform.iacaseapi.infrastructure.clients.model.ccd.OrganisationPolicy; -@Disabled class ShareACaseRefDataIntegrationTest extends SpringBootIntegrationTest implements WithServiceAuthStub, WithUserDetailsStub, WithReferenceDataStub { diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/AutomaticDirectionHandlerTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/AutomaticDirectionHandlerTest.java index f52c2f0c6a..85bff75357 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/AutomaticDirectionHandlerTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/AutomaticDirectionHandlerTest.java @@ -11,7 +11,6 @@ import org.junit.Test; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.security.test.context.support.WithMockUser; import uk.gov.hmcts.reform.iacaseapi.component.testutils.*; @@ -20,7 +19,6 @@ import uk.gov.hmcts.reform.iacaseapi.domain.entities.AsylumCaseFieldDefinition; import uk.gov.hmcts.reform.iacaseapi.infrastructure.security.RequestUserAccessTokenProvider; -@Disabled class AutomaticDirectionHandlerTest extends SpringBootIntegrationTest implements WithUserDetailsStub, WithServiceAuthStub, WithTimedEventServiceStub, WithNotificationsApiStub { diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/EditDocsCaseNoteServiceTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/EditDocsCaseNoteServiceTest.java index b6b29fed60..51cf04b7fb 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/EditDocsCaseNoteServiceTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/EditDocsCaseNoteServiceTest.java @@ -14,7 +14,6 @@ import java.util.List; import java.util.Optional; import org.jetbrains.annotations.NotNull; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.mockito.BDDMockito; import org.springframework.beans.factory.annotation.Autowired; @@ -33,7 +32,6 @@ import uk.gov.hmcts.reform.iacaseapi.domain.handlers.presubmit.editdocs.EditDocsCaseNoteService; import uk.gov.hmcts.reform.iacaseapi.infrastructure.security.idam.IdamUserDetails; -@Disabled class EditDocsCaseNoteServiceTest extends SpringBootIntegrationTest { @MockBean diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/HearingCentreTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/HearingCentreTest.java index c610e8db85..2e9488d23a 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/HearingCentreTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/HearingCentreTest.java @@ -2,14 +2,12 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import uk.gov.hmcts.reform.iacaseapi.component.testutils.SpringBootIntegrationTest; import uk.gov.hmcts.reform.iacaseapi.domain.entities.HearingCentre; import uk.gov.hmcts.reform.iacaseapi.domain.service.HearingCentreFinder; -@Disabled class HearingCentreTest extends SpringBootIntegrationTest { @Autowired private HearingCentreFinder hearingCentreFinder; diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/allocatethecase/CaseWorkerServiceTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/allocatethecase/CaseWorkerServiceTest.java index 0b12991236..cbcc927176 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/allocatethecase/CaseWorkerServiceTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/presubmit/allocatethecase/CaseWorkerServiceTest.java @@ -9,7 +9,6 @@ import java.util.List; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInstance; import org.springframework.beans.factory.annotation.Autowired; @@ -28,7 +27,6 @@ @TestPropertySource(properties = { "REF_DATA_CASE_WORKER_URL=http://127.0.0.1:8990" }) -@Disabled @TestInstance(TestInstance.Lifecycle.PER_CLASS) class CaseWorkerServiceTest { diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/entities/AssignmentTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/entities/AssignmentTest.java index dac88dc8c9..ba3cbd9500 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/entities/AssignmentTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/entities/AssignmentTest.java @@ -6,7 +6,6 @@ import java.io.IOException; import java.util.Collections; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import uk.gov.hmcts.reform.iacaseapi.component.testutils.SpringBootIntegrationTest; @@ -18,7 +17,6 @@ import uk.gov.hmcts.reform.iacaseapi.domain.entities.roleassignment.RoleName; import uk.gov.hmcts.reform.iacaseapi.domain.entities.roleassignment.RoleType; -@Disabled class AssignmentTest extends SpringBootIntegrationTest { @Autowired diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/infrastructure/DbAppealReferenceNumberGeneratorIntegrationTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/infrastructure/DbAppealReferenceNumberGeneratorIntegrationTest.java index c09b814c4a..93a325269c 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/infrastructure/DbAppealReferenceNumberGeneratorIntegrationTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/infrastructure/DbAppealReferenceNumberGeneratorIntegrationTest.java @@ -12,7 +12,6 @@ import java.util.stream.Collectors; import java.util.stream.LongStream; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.mock.mockito.MockBean; @@ -21,7 +20,6 @@ import uk.gov.hmcts.reform.iacaseapi.domain.DateProvider; import uk.gov.hmcts.reform.iacaseapi.domain.entities.AppealType; -@Disabled class DbAppealReferenceNumberGeneratorIntegrationTest extends SpringBootIntegrationTest { @MockBean diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/infrastructure/UserDetailsRequestScopeTest.java b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/infrastructure/UserDetailsRequestScopeTest.java index d9fb84746d..2482e32dd7 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/infrastructure/UserDetailsRequestScopeTest.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/iacaseapi/infrastructure/UserDetailsRequestScopeTest.java @@ -16,7 +16,6 @@ import java.util.Map; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.mockito.Mockito; import org.springframework.boot.test.mock.mockito.MockBean; @@ -30,7 +29,6 @@ import uk.gov.hmcts.reform.iacaseapi.infrastructure.clients.model.idam.UserInfo; import uk.gov.hmcts.reform.iacaseapi.infrastructure.security.RequestUserAccessTokenProvider; -@Disabled class UserDetailsRequestScopeTest extends SpringBootIntegrationTest implements WithNotificationsApiStub, WithServiceAuthStub { @MockBean diff --git a/src/main/java/uk/gov/hmcts/reform/iacaseapi/domain/service/CcdDataService.java b/src/main/java/uk/gov/hmcts/reform/iacaseapi/domain/service/CcdDataService.java index 0ea75fda2f..52c95e2e3b 100644 --- a/src/main/java/uk/gov/hmcts/reform/iacaseapi/domain/service/CcdDataService.java +++ b/src/main/java/uk/gov/hmcts/reform/iacaseapi/domain/service/CcdDataService.java @@ -107,7 +107,7 @@ private StartEventDetails getCase( String userToken, String s2sToken, String uid, String jurisdiction, String caseId) { return ccdDataApi.startEvent(userToken, s2sToken, uid, jurisdiction, CASE_TYPE, - caseId, Event.UPDATE_PAYMENT_STATUS.toString()); + caseId, Event.RESET_CHANGE_ORGANISATION_REQUEST.toString()); } private SubmitEventDetails submitEvent(