From 54b506ecf47497403392f618eefd3faa5e1eff34 Mon Sep 17 00:00:00 2001 From: Jonathan Bregler Date: Fri, 22 Sep 2017 13:25:44 +0200 Subject: [PATCH] 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() --- .../src/test/java/org/hibernate/jpa/test/ops/GetLoadTest.java | 1 + .../envers/test/integration/query/RevisionConstraintQuery.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/test/java/org/hibernate/jpa/test/ops/GetLoadTest.java b/hibernate-core/src/test/java/org/hibernate/jpa/test/ops/GetLoadTest.java index f82c5a2c8f..8265abd159 100755 --- a/hibernate-core/src/test/java/org/hibernate/jpa/test/ops/GetLoadTest.java +++ b/hibernate-core/src/test/java/org/hibernate/jpa/test/ops/GetLoadTest.java @@ -75,6 +75,7 @@ public class GetLoadTest extends BaseEntityManagerFunctionalTestCase { } @Test + @SkipForDialect(value = AbstractHANADialect.class, comment = " HANA doesn't support tables consisting of only a single auto-generated column") public void testLoad() { clearCounts(); 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 720b7c22cf..c5f7733f1e 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 @@ -128,7 +128,7 @@ public class RevisionConstraintQuery extends BaseEnversJPAFunctionalTestCase { .add( AuditEntity.property( "number" ).lt( 10 ) ) .getResultList(); - Assert.assertEquals( Arrays.asList( 3, 4 ), result ); + Assert.assertEquals( TestTools.makeSet( 3, 4 ), new HashSet<>( result ) ); } @Test