removed unreliable test case from core-java-modules/core-java-date-operations
This commit is contained in:
parent
cca2e8be4d
commit
68b2af4a28
|
@ -7,15 +7,9 @@ import org.junit.Test;
|
||||||
import com.baeldung.datetime.sql.TimeUtils;
|
import com.baeldung.datetime.sql.TimeUtils;
|
||||||
|
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
public class TimeUtilsUnitTest {
|
public class TimeUtilsUnitTest {
|
||||||
|
|
||||||
@Test
|
|
||||||
public void givenCurrentTime_thenNowIsReturned() {
|
|
||||||
assertEquals(TimeUtils.getNow(), new Date());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test(expected = IllegalArgumentException.class)
|
@Test(expected = IllegalArgumentException.class)
|
||||||
public void givenTimeAsString_whenPatternIsNotRespected_thenExceptionIsThrown() {
|
public void givenTimeAsString_whenPatternIsNotRespected_thenExceptionIsThrown() {
|
||||||
TimeUtils.getTime("10 11 12");
|
TimeUtils.getTime("10 11 12");
|
||||||
|
|
Loading…
Reference in New Issue