DATAJDBC-484 - Fixes a JDK dependent test failure.

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.

Also reduced logging in tests again.
This commit is contained in:
Jens Schauder
2020-02-07 15:27:51 +01:00
parent fe181b2bd9
commit 595559bf28
2 changed files with 4 additions and 2 deletions

View File

@@ -278,7 +278,9 @@ public class JdbcRepositoryIntegrationTests {
repository.saveAll(asList(first, second));
assertThat(repository.after(now)).containsExactly(second);
assertThat(repository.after(now)) //
.extracting(DummyEntity::getName) //
.containsExactly("second");
}
@Test // DATAJDBC-234

View File

@@ -8,7 +8,7 @@
</appender>
<!--<logger name="org.springframework.data" level="info" />-->
<logger name="org.springframework.jdbc.core" level="trace" />
<!--<logger name="org.springframework.jdbc.core" level="trace" />-->
<!--<logger name="org.springframework.data.jdbc.mybatis.DummyEntityMapper" level="trace" />-->
<root level="warn">