Search in sources :

Example 36 with Contract

use of gov.cms.ab2d.common.model.Contract in project ab2d by CMSgov.

the class ContractServiceImplTest method before.

@BeforeEach
private void before() {
    contract = new Contract();
    contract.setContractName("Test Contract");
    contract.setContractNumber("NATTE");
    contract = contractRepo.save(contract);
    dataSetup.queueForCleanup(contract);
}
Also used : Contract(gov.cms.ab2d.common.model.Contract) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

Contract (gov.cms.ab2d.common.model.Contract)36 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)15 Test (org.junit.jupiter.api.Test)13 PdpClient (gov.cms.ab2d.common.model.PdpClient)6 CoveragePeriod (gov.cms.ab2d.coverage.model.CoveragePeriod)6 Job (gov.cms.ab2d.common.model.Job)5 ContractDTO (gov.cms.ab2d.common.dto.ContractDTO)4 OffsetDateTime (java.time.OffsetDateTime)4 ArrayList (java.util.ArrayList)4 DisplayName (org.junit.jupiter.api.DisplayName)4 PdpClientDTO (gov.cms.ab2d.common.dto.PdpClientDTO)3 PdpClientService (gov.cms.ab2d.common.service.PdpClientService)3 PropertiesService (gov.cms.ab2d.common.service.PropertiesService)3 Constants (gov.cms.ab2d.common.util.Constants)3 ContractForCoverageDTO (gov.cms.ab2d.coverage.model.ContractForCoverageDTO)3 CoverageMapping (gov.cms.ab2d.coverage.model.CoverageMapping)3 CoverageSearch (gov.cms.ab2d.coverage.model.CoverageSearch)3 CoverageSearchRepository (gov.cms.ab2d.coverage.repository.CoverageSearchRepository)3 CoverageService (gov.cms.ab2d.coverage.service.CoverageService)3 ContractToContractCoverageMapping (gov.cms.ab2d.worker.config.ContractToContractCoverageMapping)3