Skip to content

Commit

Permalink
Refactor to use common enums and util classes
Browse files Browse the repository at this point in the history
  • Loading branch information
venkat980 committed Jan 12, 2024
1 parent 7f981eb commit 556165a
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 108 deletions.
1 change: 1 addition & 0 deletions crime-evidence/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ dependencies {
implementation "io.micrometer:micrometer-registry-prometheus"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$versions.springDocWebMVCVersion"
implementation "org.apache.commons:commons-lang3:$versions.commonsLang3Version"
implementation "uk.gov.justice.service.laa-crime:crime-commons-classes:$versions.crimeCommonsVersion"

implementation "uk.gov.justice.service.laa-crime:crime-commons-spring-boot-starter-rest-client:$versions.crimeCommonsVersion"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import uk.gov.justice.laa.crime.evidence.dto.EvidenceFeeRulesDTO;
import uk.gov.justice.laa.crime.evidence.model.common.ApiCalculateEvidenceFeeResponse;
import uk.gov.justice.laa.crime.evidence.model.common.ApiEvidenceFee;
import uk.gov.justice.laa.crime.evidence.staticdata.enums.EvidenceFeeLevel;
import uk.gov.justice.laa.crime.enums.EvidenceFeeLevel;
import uk.gov.justice.laa.crime.evidence.staticdata.enums.EvidenceFeeRules;

@Slf4j
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;
import uk.gov.justice.laa.crime.enums.EvidenceFeeLevel;
import uk.gov.justice.laa.crime.evidence.dto.EvidenceFeeRulesDTO;

import java.util.stream.Stream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import uk.gov.justice.laa.crime.evidence.data.builder.TestModelDataBuilder;
import uk.gov.justice.laa.crime.evidence.dto.CapitalEvidenceDTO;
import uk.gov.justice.laa.crime.evidence.dto.CrimeEvidenceDTO;
import uk.gov.justice.laa.crime.evidence.staticdata.enums.EvidenceFeeLevel;
import uk.gov.justice.laa.crime.enums.EvidenceFeeLevel;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import uk.gov.justice.laa.crime.evidence.data.builder.TestModelDataBuilder;
import uk.gov.justice.laa.crime.evidence.dto.EvidenceFeeDTO;
import uk.gov.justice.laa.crime.evidence.model.common.ApiCalculateEvidenceFeeRequest;
import uk.gov.justice.laa.crime.evidence.staticdata.enums.EvidenceFeeLevel;
import uk.gov.justice.laa.crime.enums.EvidenceFeeLevel;

import static org.assertj.core.api.Assertions.assertThat;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import uk.gov.justice.laa.crime.evidence.data.builder.TestModelDataBuilder;
import uk.gov.justice.laa.crime.evidence.dto.CrimeEvidenceDTO;
import uk.gov.justice.laa.crime.evidence.service.EvidenceService;
import uk.gov.justice.laa.crime.evidence.util.RequestBuilderUtils;
import uk.gov.justice.laa.crime.util.RequestBuilderUtils;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import static org.mockito.ArgumentMatchers.any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import uk.gov.justice.laa.crime.evidence.CrimeEvidenceApplication;
import uk.gov.justice.laa.crime.evidence.config.CrimeEvidenceTestConfiguration;
import uk.gov.justice.laa.crime.evidence.data.builder.TestModelDataBuilder;
import uk.gov.justice.laa.crime.evidence.util.RequestBuilderUtils;
import uk.gov.justice.laa.crime.util.RequestBuilderUtils;

import java.util.Map;
import java.util.UUID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import uk.gov.justice.laa.crime.evidence.model.common.ApiCalculateEvidenceFeeResponse;
import uk.gov.justice.laa.crime.evidence.model.common.ApiCapitalEvidence;
import uk.gov.justice.laa.crime.evidence.model.common.ApiEvidenceFee;
import uk.gov.justice.laa.crime.evidence.staticdata.enums.EvidenceFeeLevel;
import uk.gov.justice.laa.crime.enums.EvidenceFeeLevel;

import java.time.LocalDateTime;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import uk.gov.justice.laa.crime.evidence.data.builder.TestModelDataBuilder;
import uk.gov.justice.laa.crime.evidence.dto.CrimeEvidenceDTO;
import uk.gov.justice.laa.crime.evidence.model.common.ApiCalculateEvidenceFeeResponse;
import uk.gov.justice.laa.crime.evidence.staticdata.enums.EvidenceFeeLevel;
import uk.gov.justice.laa.crime.enums.EvidenceFeeLevel;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import static org.mockito.ArgumentMatchers.anyInt;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package uk.gov.justice.laa.crime.evidence.staticdata.enums;

import org.junit.jupiter.api.Test;
import uk.gov.justice.laa.crime.enums.EvidenceFeeLevel;
import uk.gov.justice.laa.crime.evidence.dto.EvidenceFeeRulesDTO;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
Expand Down

This file was deleted.

0 comments on commit 556165a

Please sign in to comment.