removed unreliable test case from core-java-modules/core-java-date-operations

This commit is contained in:
fejera 2019-11-14 13:32:03 +01:00
parent cca2e8be4d
commit 68b2af4a28
1 changed files with 0 additions and 6 deletions

View File

@ -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");