BAEL-6572: Modifed test name as per convention

This commit is contained in:
balasr3 2023-08-19 14:40:07 +01:00
parent 4891b5c575
commit 31682be3e3
1 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ class LicenseMapperUnitTest {
LicenseMapper licenseMapper = Mappers.getMapper(LicenseMapper.class); LicenseMapper licenseMapper = Mappers.getMapper(LicenseMapper.class);
@Test @Test
void givenLicenseDtoWithStartDateAndWithoutEndDate_ThenLicenseShouldBePopulatedWithDefaultEndDate() { void givenLicenseDtoWithStartDateAndWithoutEndDate_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithDefaultEndDate() {
License license = licenseMapper.toLicense(LicenseDto.builder() License license = licenseMapper.toLicense(LicenseDto.builder()
.startDate(LocalDateTime.now()) .startDate(LocalDateTime.now())
.build()); .build());
@ -31,7 +31,7 @@ class LicenseMapperUnitTest {
} }
@Test @Test
void givenLicenseDtoWithEndDateAndWithoutStartDate_ThenLicenseShouldBePopulatedWithDefaultStartDate() { void givenLicenseDtoWithEndDateAndWithoutStartDate_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithDefaultStartDate() {
License license = licenseMapper.toLicense(LicenseDto.builder() License license = licenseMapper.toLicense(LicenseDto.builder()
.endDate(LocalDateTime.now() .endDate(LocalDateTime.now()
.plusYears(2)) .plusYears(2))
@ -47,7 +47,7 @@ class LicenseMapperUnitTest {
} }
@Test @Test
void givenLicenseDtoWithoutEndDateAndWithoutStartDate_ThenLicenseShouldBePopulatedWithDefaultStartDateAndEndDate() { void givenLicenseDtoWithoutEndDateAndWithoutStartDate_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithDefaultStartDateAndEndDate() {
License license = licenseMapper.toLicense(LicenseDto.builder() License license = licenseMapper.toLicense(LicenseDto.builder()
.build()); .build());
assertThat(license).isNotNull() assertThat(license).isNotNull()
@ -61,7 +61,7 @@ class LicenseMapperUnitTest {
} }
@Test @Test
void givenLicenseDtoWithoutStartDateAndEndDate_ThenLicenseShouldBePopulatedWithDefaultDetails() { void givenLicenseDtoWithoutStartDateAndEndDate_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithDefaultDetails() {
License license = licenseMapper.toLicense(LicenseDto.builder() License license = licenseMapper.toLicense(LicenseDto.builder()
.build()); .build());
assertThat(license).isNotNull() assertThat(license).isNotNull()
@ -77,7 +77,7 @@ class LicenseMapperUnitTest {
} }
@Test @Test
void givenLicenseDtoWithEndDateInTwoWeeks_ThenLicenseShouldBePopulatedWithReminderSetToTrue() { void givenLicenseDtoWithEndDateInTwoWeeks_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithReminderSetToTrue() {
License license = licenseMapper.toLicense(LicenseDto.builder() License license = licenseMapper.toLicense(LicenseDto.builder()
.endDate(LocalDateTime.now() .endDate(LocalDateTime.now()
.plusDays(10)) .plusDays(10))