File tree Expand file tree Collapse file tree
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments