diff --git a/src/test/java/org/springframework/data/jdbc/repository/query/QueryAnnotationHsqlIntegrationTests.java b/src/test/java/org/springframework/data/jdbc/repository/query/QueryAnnotationHsqlIntegrationTests.java index 5dfd51cad3..dc297cb897 100644 --- a/src/test/java/org/springframework/data/jdbc/repository/query/QueryAnnotationHsqlIntegrationTests.java +++ b/src/test/java/org/springframework/data/jdbc/repository/query/QueryAnnotationHsqlIntegrationTests.java @@ -17,6 +17,7 @@ import static org.assertj.core.api.Assertions.*; +import java.sql.Timestamp; import java.time.LocalDateTime; import java.util.Date; import java.util.List; @@ -195,7 +196,7 @@ public void executeCustomQueryWithReturnTypeIsBoolean() { @Test // DATAJDBC-175 public void executeCustomQueryWithReturnTypeIsDate() { - Date now = new Date(); + Date now = new Timestamp(System.currentTimeMillis()); assertThat(repository.nowWithDate()).isAfterOrEqualsTo(now); }