Skip to content

Commit 305850d

Browse files
committed
HHH-16125 disable some tests on postgres
1 parent eeef19d commit 305850d

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/typedef/NamedEnumUserTypeTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
55
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
66
*/
7-
8-
/**
9-
*
10-
*/
117
package org.hibernate.orm.test.mapping.type.typedef;
128

9+
import org.hibernate.dialect.PostgreSQLDialect;
1310
import org.hibernate.orm.test.mapping.converted.enums.Gender;
1411
import org.hibernate.orm.test.mapping.converted.enums.HairColor;
1512
import org.hibernate.orm.test.mapping.converted.enums.Person;
@@ -20,6 +17,7 @@
2017
import org.hibernate.testing.orm.junit.DomainModel;
2118
import org.hibernate.testing.orm.junit.SessionFactory;
2219
import org.hibernate.testing.orm.junit.SessionFactoryScope;
20+
import org.hibernate.testing.orm.junit.SkipForDialect;
2321
import org.junit.jupiter.api.AfterEach;
2422
import org.junit.jupiter.api.BeforeEach;
2523
import org.junit.jupiter.api.Test;
@@ -36,6 +34,7 @@
3634
xmlMappings = "mappings/type/custom/typedef/PersonNamedEnumsUserType.xml"
3735
)
3836
@SessionFactory
37+
@SkipForDialect(dialectClass = PostgreSQLDialect.class)
3938
public class NamedEnumUserTypeTest {
4039
@Test
4140
@TestForIssue(jiraKey = "HHH-14820")

hibernate-core/src/test/java/org/hibernate/orm/test/ops/EnumsParameterTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010

1111
import org.hibernate.annotations.OnDelete;
1212
import org.hibernate.annotations.OnDeleteAction;
13+
import org.hibernate.dialect.PostgreSQLDialect;
1314
import org.hibernate.query.Query;
1415

1516
import org.hibernate.testing.TestForIssue;
1617
import org.hibernate.testing.orm.junit.DomainModel;
1718
import org.hibernate.testing.orm.junit.SessionFactory;
1819
import org.hibernate.testing.orm.junit.SessionFactoryScope;
20+
import org.hibernate.testing.orm.junit.SkipForDialect;
1921
import org.junit.jupiter.api.AfterEach;
2022
import org.junit.jupiter.api.BeforeEach;
2123
import org.junit.jupiter.api.Test;
@@ -67,7 +69,7 @@ public void tearDown(SessionFactoryScope scope) {
6769
);
6870
}
6971

70-
@Test
72+
@Test @SkipForDialect(dialectClass = PostgreSQLDialect.class)
7173
public void testDeleteByEventType(SessionFactoryScope scope) {
7274
scope.inTransaction(
7375
session -> {
@@ -106,7 +108,7 @@ public void testDelete(SessionFactoryScope scope) {
106108
);
107109
}
108110

109-
@Test
111+
@Test @SkipForDialect(dialectClass = PostgreSQLDialect.class)
110112
public void testSelect(SessionFactoryScope scope) {
111113
scope.inTransaction(
112114
session -> {

hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionAndEnumsTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
import java.util.List;
44
import java.util.Locale;
55

6+
import org.hibernate.dialect.PostgreSQLDialect;
67
import org.hibernate.testing.TestForIssue;
78
import org.hibernate.testing.orm.junit.DomainModel;
89
import org.hibernate.testing.orm.junit.SessionFactory;
910
import org.hibernate.testing.orm.junit.SessionFactoryScope;
11+
import org.hibernate.testing.orm.junit.SkipForDialect;
1012
import org.junit.jupiter.api.BeforeEach;
1113
import org.junit.jupiter.api.Test;
1214

@@ -24,6 +26,7 @@
2426
)
2527
@SessionFactory
2628
@TestForIssue( jiraKey = "HHH-15711")
29+
@SkipForDialect(dialectClass = PostgreSQLDialect.class)
2730
public class FunctionAndEnumsTest {
2831

2932

hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/StandardFunctionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public void testCoalesceFunction(SessionFactoryScope scope) {
190190
session.createQuery("select coalesce(nullif(e.gender,?1), e.gender) from EntityOfBasics e")
191191
.setParameter(1, FEMALE)
192192
.list();
193-
session.createQuery("select ifnull(e.gender, e.convertedGender) from EntityOfBasics e")
193+
session.createQuery("select ifnull(e.gender, org.hibernate.testing.orm.domain.gambit.EntityOfBasics$Gender.MALE) from EntityOfBasics e")
194194
.list();
195195
}
196196
);

0 commit comments

Comments
 (0)