BAEL-5465: changed example to LocalDateTime (#12086)

This commit is contained in:
etrandafir93 2022-04-19 01:13:13 +02:00 committed by GitHub
parent 96fe8aed39
commit f4c4d890d6
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import static org.junit.Assert.assertEquals;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
@ -15,7 +16,7 @@ public class SubtractDaysFromDateUnitTest {
@Test
public void givenLocalDateTime_whenSubtractingFiveDays_dateIsChangedCorrectly() {
LocalDate localDateTime = LocalDate.of(2022, 4, 20);
LocalDateTime localDateTime = LocalDateTime.of(2022, 4, 20, 0, 0);
localDateTime = localDateTime.minusDays(5);