From b7d92ed19b36464fc9569d5744274e08df168eac Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Mon, 2 Jul 2018 10:31:30 -0400 Subject: [PATCH] HHH-12755 - Fix broken envers tests on Postgres and EnterpriseDB --- .../envers/test/integration/query/RevisionConstraintQuery.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/query/RevisionConstraintQuery.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/query/RevisionConstraintQuery.java index c5f7733f1e..2502f81d98 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/query/RevisionConstraintQuery.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/query/RevisionConstraintQuery.java @@ -91,6 +91,7 @@ public class RevisionConstraintQuery extends BaseEnversJPAFunctionalTestCase { .forRevisionsOfEntity( StrIntTestEntity.class, false, true ) .addProjection( AuditEntity.revisionNumber().distinct() ) .add( AuditEntity.revisionNumber().lt( 3 ) ) + .addOrder( AuditEntity.revisionNumber().asc() ) .getResultList(); Assert.assertEquals( Arrays.asList( 1, 2 ), result ); @@ -102,6 +103,7 @@ public class RevisionConstraintQuery extends BaseEnversJPAFunctionalTestCase { .forRevisionsOfEntity( StrIntTestEntity.class, false, true ) .addProjection( AuditEntity.revisionNumber().distinct() ) .add( AuditEntity.revisionNumber().ge( 2 ) ) + .addOrder( AuditEntity.revisionNumber().asc() ) .getResultList(); Assert.assertEquals( TestTools.makeSet( 2, 3, 4 ), new HashSet( result ) );