|
1 | 1 | package de.zalando.typemapper.postgres;
|
2 | 2 |
|
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 |
| - |
10 | 3 | import java.sql.SQLException;
|
11 |
| - |
12 |
| -import java.time.Instant; |
13 | 4 | import java.util.Arrays;
|
14 | 5 | import java.util.Collection;
|
15 | 6 | import java.util.Date;
|
16 | 7 | import java.util.regex.Pattern;
|
17 | 8 |
|
18 | 9 | import org.junit.Test;
|
19 |
| - |
20 | 10 | import org.junit.runner.RunWith;
|
21 |
| - |
22 | 11 | import org.junit.runners.Parameterized;
|
23 | 12 | 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; |
24 | 20 |
|
25 | 21 | @RunWith(Parameterized.class)
|
26 | 22 | public class PgSerializerTest {
|
@@ -64,7 +60,6 @@ public static Collection<Object[]> generateData() throws SQLException {
|
64 | 60 | new Object[][] {
|
65 | 61 | {new Date(112, 11, 1, 6, 6, 6), Pattern.compile("2012-12-01 06:06:06[+-]?\\d{2}")},
|
66 | 62 | {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}")}, |
68 | 63 | {1, "1"},
|
69 | 64 | {69, "69"},
|
70 | 65 | {true, "t"},
|
|
0 commit comments