-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AB2D-6146] increase
ab2d-contracts-client
coverage (#397)
* move file * ContractTest * typo * typo * ContractDTOTest * private
- Loading branch information
1 parent
d2783b5
commit ce90eb6
Showing
2 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
ab2d-contracts-client/src/test/java/gov/cms/ab2d/contracts/model/ContractDTOTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package gov.cms.ab2d.contracts.model; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertFalse; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
class ContractDTOTest { | ||
|
||
@Test | ||
void testHasDateIssueCaseOne() { | ||
ContractDTO contractDTO = new ContractDTO(); | ||
contractDTO.setContractType(Contract.ContractType.CLASSIC_TEST); | ||
assertTrue(contractDTO.hasDateIssue()); | ||
} | ||
|
||
@Test | ||
void testHasDateIssueCaseTwo() { | ||
ContractDTO contractDTO = new ContractDTO(); | ||
contractDTO.setContractType(Contract.ContractType.NORMAL); | ||
assertFalse(contractDTO.hasDateIssue()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters