Skip to content

Commit b7e831e

Browse files
committed
java 8 only nanoseconds test removed
1 parent c075d23 commit b7e831e

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

src/test/java/de/zalando/typemapper/postgres/PgSerializerTest.java

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
package de.zalando.typemapper.postgres;
22

3-
import static org.hamcrest.CoreMatchers.is;
4-
import static org.cthul.matchers.CthulMatchers.*;
5-
import static org.junit.Assert.assertThat;
6-
7-
import static de.zalando.typemapper.postgres.PgArray.ARRAY;
8-
import static de.zalando.typemapper.postgres.PgRow.ROW;
9-
103
import java.sql.SQLException;
11-
12-
import java.time.Instant;
134
import java.util.Arrays;
145
import java.util.Collection;
156
import java.util.Date;
167
import java.util.regex.Pattern;
178

189
import org.junit.Test;
19-
2010
import org.junit.runner.RunWith;
21-
2211
import org.junit.runners.Parameterized;
2312
import org.junit.runners.Parameterized.Parameters;
13+
import static org.cthul.matchers.CthulMatchers.matchesPattern;
14+
import static org.hamcrest.CoreMatchers.is;
15+
import static org.junit.Assert.assertThat;
16+
17+
18+
import static de.zalando.typemapper.postgres.PgArray.ARRAY;
19+
import static de.zalando.typemapper.postgres.PgRow.ROW;
2420

2521
@RunWith(Parameterized.class)
2622
public class PgSerializerTest {
@@ -64,7 +60,6 @@ public static Collection<Object[]> generateData() throws SQLException {
6460
new Object[][] {
6561
{new Date(112, 11, 1, 6, 6, 6), Pattern.compile("2012-12-01 06:06:06[+-]?\\d{2}")},
6662
{new Date(112, 9, 1, 6, 6, 6), Pattern.compile("2012-10-01 06:06:06[+-]?\\d{2}")},
67-
{Date.from(Instant.parse("2017-05-14T12:34:56.123456789Z")), Pattern.compile("2017-05-14 14:34:56.123000[+-]?\\d{2}")},
6863
{1, "1"},
6964
{69, "69"},
7065
{true, "t"},

0 commit comments

Comments
 (0)