diff --git a/mapstruct/src/test/java/com/baeldung/expression/mapper/LicenseMapperUnitTest.java b/mapstruct/src/test/java/com/baeldung/expression/mapper/LicenseMapperUnitTest.java index 38bf940325..947e6a33c2 100644 --- a/mapstruct/src/test/java/com/baeldung/expression/mapper/LicenseMapperUnitTest.java +++ b/mapstruct/src/test/java/com/baeldung/expression/mapper/LicenseMapperUnitTest.java @@ -37,18 +37,6 @@ class LicenseMapperUnitTest { .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 void givenLicenseDtoWithoutStartDateAndEndDate_WhenMapperMethodIsInvoked_ThenLicenseShouldBePopulatedWithDefaultDetails() { License license = licenseMapper.toLicense(LicenseDto.builder()