-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8da26d6
commit 57c6f21
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
import org.junit.jupiter.api.extension.ExtendWith; | ||
|
||
import java.time.Instant; | ||
import java.time.ZoneId; | ||
import java.time.ZonedDateTime; | ||
import java.util.List; | ||
import java.util.Optional; | ||
|
@@ -174,7 +175,9 @@ public void verifyAllTheFieldTypesView() throws Exception { | |
// see that we can persist and read a row with all fields, no indexed columns | ||
var id = newId(); | ||
var row = new AllTheTypesKvEntity.AllTheTypes(1, 2L, 3F, 4D, true, "text", 5, 6L, 7F, 8D, false, | ||
Instant.now(), ZonedDateTime.now(), | ||
Instant.now(), | ||
// Note: we turn it into a timestamp internally, so the specific TZ is lost (but the exact point in time stays the same) | ||
ZonedDateTime.now().withZoneSameInstant(ZoneId.of("Z")), | ||
Optional.of("optional"), List.of("text1", "text2"), | ||
new AllTheTypesKvEntity.ByEmail("[email protected]"), | ||
AllTheTypesKvEntity.AnEnum.THREE, new AllTheTypesKvEntity.Recursive(new AllTheTypesKvEntity.Recursive(null, "level2"), "level1")); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters