HHH-12021 - Fix tests failing on SAP HANA

- skip testLoad() of org.hibernate.jpa.test.ops.GetLoadTest
- change the result comparison to set-based instead in testRevisionsGtWithPropertyQuery()
This commit is contained in:
Jonathan Bregler 2017-09-22 13:25:44 +02:00 committed by Vlad Mihalcea
parent 1fc4ce23ac
commit 54b506ecf4
2 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@ public class GetLoadTest extends BaseEntityManagerFunctionalTestCase {
} }
@Test @Test
@SkipForDialect(value = AbstractHANADialect.class, comment = " HANA doesn't support tables consisting of only a single auto-generated column")
public void testLoad() { public void testLoad() {
clearCounts(); clearCounts();

View File

@ -128,7 +128,7 @@ public class RevisionConstraintQuery extends BaseEnversJPAFunctionalTestCase {
.add( AuditEntity.property( "number" ).lt( 10 ) ) .add( AuditEntity.property( "number" ).lt( 10 ) )
.getResultList(); .getResultList();
Assert.assertEquals( Arrays.asList( 3, 4 ), result ); Assert.assertEquals( TestTools.makeSet( 3, 4 ), new HashSet<>( result ) );
} }
@Test @Test