BAEL-3674: Remove the broken test

This commit is contained in:
Krzysiek 2019-12-26 22:36:10 +01:00
parent 2025af5977
commit 1973c49acb
1 changed files with 2 additions and 11 deletions

View File

@ -1,22 +1,13 @@
package com.baeldung.datetime.sql;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.baeldung.datetime.sql.TimestampUtils;
import java.text.ParseException;
import java.util.Date;
import static org.junit.Assert.assertEquals;
public class TimestampUtilsUnitTest {
@Test
public void givenCurrentTimestamp_thenNowIsReturned() {
assertEquals(TimestampUtils.getNow()
.getTime(), new Date().getTime());
}
@Test(expected = IllegalArgumentException.class)
public void givenTimestampAsString_whenPatternIsNotRespected_thenExceptionIsThrown() {
TimestampUtils.getTimestamp("2020/01/01 10:11-12");