ok. i think it's that your test was using projections as well, so here
is a failing test:
Pinaki Poddar wrote:
All OpenJPA commits are subjected to TeamCity runs against the entire test
corpus. So yes -- the checked-in Slice tests do run and pass. There is
something specific in the domain model in your tests that hits the code path
you cited. Hence the request for a test case.
Index: openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQuery.java
===================================================================
--- openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQuery.java (revision 728862)
+++ openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQuery.java (working copy)
@@ -95,6 +95,21 @@
em.getTransaction().rollback();
}
+ public void testQueryResultIsOrderedAcrossSlice2() {
+ EntityManager em = emf.createEntityManager();
+ em.getTransaction().begin();
+ Query query = em.createQuery("SELECT p FROM PObject p ORDER BY p.value ASC");
+ List result = query.getResultList();
+ Integer old = Integer.MIN_VALUE;
+ for (Object row : result) {
+ PObject pc = (PObject) row;
+ int value = pc.getValue();
+ assertTrue(value >= old);
+ old = value;
+ }
+ em.getTransaction().rollback();
+ }
+
public void testAggregateQuery() {
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();