BAEL-7032: updated with review comment on test

This commit is contained in:
balasr3 2023-10-07 14:48:34 +01:00
parent 96de260e1d
commit 131d675771
1 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ class LicenseMapperUnitTest {
} }
@Test @Test
void givenLicenseDtoWithoutLicenseTypeString_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithoutLicenseType() { void givenLicenseDtoWithoutLicenseTypeString_whenMapperMethodIsInvoked_thenLicenseShouldBePopulatedWithoutLicenseType() {
LicenseDto licenseDto = new LicenseDto(); LicenseDto licenseDto = new LicenseDto();
License license = licenseMapper.toLicense(licenseDto); License license = licenseMapper.toLicense(licenseDto);
assertThat(license).isNotNull(); assertThat(license).isNotNull();
@ -84,7 +84,7 @@ class LicenseMapperUnitTest {
} }
@Test @Test
void givenLicenseDtoWithInvalidLicenseTypeString_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithoutLicenseType() { void givenLicenseDtoWithInvalidLicenseTypeString_whenMapperMethodIsInvoked_thenLicenseShouldBePopulatedWithoutLicenseType() {
LicenseDto licenseDto = new LicenseDto(); LicenseDto licenseDto = new LicenseDto();
licenseDto.setLicenseType("invalid_license_type"); licenseDto.setLicenseType("invalid_license_type");
License license = licenseMapper.toLicense(licenseDto); License license = licenseMapper.toLicense(licenseDto);
@ -93,7 +93,7 @@ class LicenseMapperUnitTest {
} }
@Test @Test
void givenLicenseDtoWithValidLicenseTypeString_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithMatchingLicenseType() { void givenLicenseDtoWithValidLicenseTypeString_whenMapperMethodIsInvoked_thenLicenseShouldBePopulatedWithMatchingLicenseType() {
LicenseDto licenseDto = new LicenseDto(); LicenseDto licenseDto = new LicenseDto();
licenseDto.setLicenseType("INDIVIDUAL"); licenseDto.setLicenseType("INDIVIDUAL");
License license = licenseMapper.toLicense(licenseDto); License license = licenseMapper.toLicense(licenseDto);