Skip to content

Commit

Permalink
Improve comments on timezone unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-kleber-avelios committed Dec 11, 2024
1 parent 65744da commit aa36db1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ public void testTimezoneColumns() throws Exception {
assertThat(
snapshot.get(Column.class),
hasItems(
// Instant colum should result in 'timestamp with timezone' type
// Instant column should result in 'timestamp with timezone' type
allOf(
hasProperty("name", equalTo("timestamp1")),
hasDatabaseAttribute("type", DataType.class, hasProperty("typeName", equalTo("timestamp with timezone")))
),
// LocalDateTime colum should result in 'timestamp' type
// LocalDateTime column should result in 'timestamp' type
allOf(
hasProperty("name", equalTo("timestamp2")),
hasDatabaseAttribute("type", DataType.class, hasProperty("typeName", equalTo("timestamp")))
),
// Colum with explicit definition
// Instant column with explicit definition 'timestamp' should result in 'timestamp' type
allOf(
hasProperty("name", equalTo("timestamp3")),
hasDatabaseAttribute("type", DataType.class, hasProperty("typeName", equalTo("timestamp")))
),
// Colum with explicit definition
// LocalDateTime Colum with explicit definition 'TIMESTAMP WITH TIME ZONE' should result in 'TIMESTAMP with timezone' type
allOf(
hasProperty("name", equalTo("timestamp4")),
hasDatabaseAttribute("type", DataType.class, hasProperty("typeName", equalToIgnoringCase("timestamp with timezone")))
Expand Down

0 comments on commit aa36db1

Please sign in to comment.