Skip to content

Commit ed8fe32

Browse files
committed
[OPENJPA-2940][WIP] Merge branch 'master' into OPENJPA-2940
2 parents 284a75c + d7417c7 commit ed8fe32

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ public void testMinLocalTime() {
181181
EntityManager em = emf.createEntityManager();
182182
final TypedQuery<LocalTime> qry = em.createQuery("select min(t.localTimeField) from Java8TimeTypes AS t", LocalTime.class);
183183
final LocalTime min = qry.getSingleResult();
184-
final LocalTime etalon = (entity1.getLocalTimeField().compareTo(entity2.getLocalTimeField()) < 0
185-
? entity1.getLocalTimeField() : entity2.getLocalTimeField()).withNano(0);
186-
assertEquals(etalon, min);
184+
final LocalTime etalon = entity1.getLocalTimeField().compareTo(entity2.getLocalTimeField()) < 0
185+
? entity1.getLocalTimeField() : entity2.getLocalTimeField();
186+
assertEquals(etalon.withNano(0), min.withNano(0));
187187
em.close();
188188
}
189189

@@ -264,5 +264,4 @@ public void testGetCurrentLocalTime() {
264264
assertFalse(times.isEmpty());
265265
em.close();
266266
}
267-
268267
}

0 commit comments

Comments
 (0)