BAEL-6572: Modified test based on review comments
This commit is contained in:
parent
eb4a1d040e
commit
1b1dab20ff
|
@ -37,18 +37,6 @@ class LicenseMapperUnitTest {
|
||||||
.toLocalDate()).isEqualTo(LocalDate.now());
|
.toLocalDate()).isEqualTo(LocalDate.now());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
void givenLicenseDtoWithoutEndDateAndWithoutStartDate_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithDefaultStartDateAndEndDate() {
|
|
||||||
License license = licenseMapper.toLicense(LicenseDto.builder()
|
|
||||||
.build());
|
|
||||||
assertThat(license).isNotNull();
|
|
||||||
assertThat(license.getStartDate()
|
|
||||||
.toLocalDate()).isEqualTo(LocalDate.now());
|
|
||||||
assertThat(license.getEndDate()
|
|
||||||
.toLocalDate()).isEqualTo(LocalDate.now()
|
|
||||||
.plusYears(1));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void givenLicenseDtoWithoutStartDateAndEndDate_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithDefaultDetails() {
|
void givenLicenseDtoWithoutStartDateAndEndDate_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithDefaultDetails() {
|
||||||
License license = licenseMapper.toLicense(LicenseDto.builder()
|
License license = licenseMapper.toLicense(LicenseDto.builder()
|
||||||
|
|
Loading…
Reference in New Issue