Skip to content

Commit

Permalink
DATAJDBC-484 - Fixes a JDK dependent test failure.
Browse files Browse the repository at this point in the history
Beginning from JDK 10 `Instant` uses nanosecond precision which doesn't make it through the database.
This caused the test to fail.
This fix fixes only the test by making the assertion more lenient.
Actually storing and retrieving nanosecond precision time values is a separate issue.
  • Loading branch information
schauder committed Feb 7, 2020
1 parent fe181b2 commit 5ba898f
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -278,7 +278,9 @@ public void executeQueryWithParameterRequiringConversion() {

repository.saveAll(asList(first, second));

assertThat(repository.after(now)).containsExactly(second);
assertThat(repository.after(now)) //
.extracting(DummyEntity::getName) //
.containsExactly("second");
}

@Test // DATAJDBC-234
Expand Down

0 comments on commit 5ba898f

Please sign in to comment.