You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by so...@apache.org on 2025/07/10 03:32:57 UTC
(openjpa) branch solomax/java-time-tests created (now e185cc005)
This is an automated email from the ASF dual-hosted git repository.
solomax pushed a change to branch solomax/java-time-tests
in repository https://gitbox.apache.org/repos/asf/openjpa.git
at e185cc005 Fixing Java8TimeTypes at the CI
This branch includes the following new commits:
new e185cc005 Fixing Java8TimeTypes at the CI
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(openjpa) 01/01: Fixing Java8TimeTypes at the CI
Posted by so...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch solomax/java-time-tests
in repository https://gitbox.apache.org/repos/asf/openjpa.git
commit e185cc00528532312c4b3915f7da2a0d6d6adda4
Author: Maxim Solodovnik <so...@apache.org>
AuthorDate: Thu Jul 10 10:32:37 2025 +0700
Fixing Java8TimeTypes at the CI
---
.../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();
}
-
}