This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openjpa.git


The following commit(s) were added to refs/heads/master by this push:
     new d7417c75c [OPENJPA-2942] Fixing Java8TimeTypes at the CI (#136)
d7417c75c is described below

commit d7417c75caf356fc818303a0d95b582673d70b46
Author: Maxim Solodovnik <solomax...@gmail.com>
AuthorDate: Fri Jul 18 10:32:18 2025 +0700

    [OPENJPA-2942] Fixing Java8TimeTypes at the CI (#136)
---
 .../org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git 
a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
 
b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
index 222fb27b2..07f4e774b 100644
--- 
a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
+++ 
b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
@@ -180,9 +180,9 @@ public class TestJava8TimeTypes extends SingleEMFTestCase {
         EntityManager em = emf.createEntityManager();
         final TypedQuery<LocalTime> qry = em.createQuery("select 
min(t.localTimeField) from Java8TimeTypes AS t", LocalTime.class);
         final LocalTime min = qry.getSingleResult();
-        final LocalTime etalon = 
(entity1.getLocalTimeField().compareTo(entity2.getLocalTimeField()) < 0
-                ? entity1.getLocalTimeField() : 
entity2.getLocalTimeField()).withNano(0);
-        assertEquals(etalon, min);
+        final LocalTime etalon = 
entity1.getLocalTimeField().compareTo(entity2.getLocalTimeField()) < 0
+                ? entity1.getLocalTimeField() : entity2.getLocalTimeField();
+        assertEquals(etalon.withNano(0), min.withNano(0));
         em.close();
     }
 
@@ -259,10 +259,8 @@ public class TestJava8TimeTypes extends SingleEMFTestCase {
         final TypedQuery<Java8TimeTypes> qry
                 = em.createQuery("select j from Java8TimeTypes AS j where 
j.localTimeField < LOCAL TIME", Java8TimeTypes.class);
         final List<Java8TimeTypes> times = qry.getResultList();
-System.err.println(times);
         assertNotNull(times);
         assertFalse(times.isEmpty());
         em.close();
     }
-
 }

Reply via email to