Merge pull request #7798 from fanatixan/bael-16656

BAEL-16656
This commit is contained in:
Josh Cummings
2019-11-18 09:45:07 -07:00
committed by GitHub
89 changed files with 1923 additions and 515 deletions
@@ -7,15 +7,9 @@ import org.junit.Test;
import com.baeldung.datetime.sql.TimeUtils;
import java.text.ParseException;
import java.util.Date;
public class TimeUtilsUnitTest {
@Test
public void givenCurrentTime_thenNowIsReturned() {
assertEquals(TimeUtils.getNow(), new Date());
}
@Test(expected = IllegalArgumentException.class)
public void givenTimeAsString_whenPatternIsNotRespected_thenExceptionIsThrown() {
TimeUtils.getTime("10 11 12");