Merge pull request #8219 from amit2103/BAEL-19420

[BAEL-19420] - Removed the duplicate SpringContextIntegrationTest and…
This commit is contained in:
Loredana Crusoveanu
2019-11-25 23:38:39 +02:00
committed by GitHub
167 changed files with 10 additions and 2959 deletions

View File

@@ -2,18 +2,16 @@ package com.baeldung.datetime.sql;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.baeldung.datetime.sql.DateUtils;
import java.text.ParseException;
import java.util.Date;
import java.time.LocalDate;
import org.junit.Test;
public class DateUtilsUnitTest {
@Test
public void givenCurrentDate_thenTodayIsReturned() {
assertEquals(DateUtils.getNow(), new Date());
assertEquals(DateUtils.getNow().toLocalDate(), LocalDate.now());
}
@Test(expected = IllegalArgumentException.class)