HHH-12755 - Fix broken envers tests on Postgres and EnterpriseDB

This commit is contained in:
Chris Cranford 2018-07-02 10:31:30 -04:00
parent 75d65542a1
commit b7d92ed19b
1 changed files with 2 additions and 0 deletions

View File

@ -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 ) );