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:
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user