BAEL-3674: Remove two more unit tests

This commit is contained in:
Krzysiek 2019-12-28 23:13:39 +01:00
parent 1973c49acb
commit df1944164b
2 changed files with 0 additions and 11 deletions

View File

@ -9,12 +9,6 @@ import static org.junit.Assert.assertEquals;
public class DateUtilsUnitTest {
@Test
public void givenTimeMillis_thenDateIsReturned() {
Date now = DateUtils.getNow();
assertEquals(DateUtils.getDate(now.getTime()), now);
}
@Test
public void givenDateAndPattern_thenDateIsCorrectlyReturned() throws ParseException {
long milliseconds = new Date(2020 - 1900, 0, 1).getTime();

View File

@ -9,11 +9,6 @@ import org.junit.Test;
public class DateUtilsUnitTest {
@Test
public void givenCurrentDate_thenTodayIsReturned() {
assertEquals(DateUtils.getNow().toLocalDate(), LocalDate.now());
}
@Test(expected = IllegalArgumentException.class)
public void givenDateAsString_whenPatternIsNotRespected_thenExceptionIsThrown() {
DateUtils.getDate("2020 01 01");