Temporarily disable a test for Oracle due to a bug in BasicFormatterImpl

This commit is contained in:
Christian Beikov 2022-03-15 13:29:30 +01:00
parent d17a6fbf85
commit 2184a39dcf
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ package org.hibernate.orm.test.query.hql.set;
import java.util.List; import java.util.List;
import org.hibernate.dialect.OracleDialect;
import org.hibernate.query.SemanticException; import org.hibernate.query.SemanticException;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
@ -20,6 +21,7 @@ import org.hibernate.testing.orm.junit.RequiresDialectFeature;
import org.hibernate.testing.orm.junit.ServiceRegistry; import org.hibernate.testing.orm.junit.ServiceRegistry;
import org.hibernate.testing.orm.junit.SessionFactory; import org.hibernate.testing.orm.junit.SessionFactory;
import org.hibernate.testing.orm.junit.SessionFactoryScope; import org.hibernate.testing.orm.junit.SessionFactoryScope;
import org.hibernate.testing.orm.junit.SkipForDialect;
import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
@ -240,6 +242,7 @@ public class SetOperationTest {
@Test @Test
@RequiresDialectFeature(feature = DialectFeatureChecks.SupportsUnion.class) @RequiresDialectFeature(feature = DialectFeatureChecks.SupportsUnion.class)
@RequiresDialectFeature(feature = DialectFeatureChecks.SupportsOrderByInSubquery.class) @RequiresDialectFeature(feature = DialectFeatureChecks.SupportsOrderByInSubquery.class)
@SkipForDialect(dialectClass = OracleDialect.class, reason = "Bug in BasicFormatterImpl causes exception during formatting of the SQL string")
public void testAlternatingSetOperator(SessionFactoryScope scope) { public void testAlternatingSetOperator(SessionFactoryScope scope) {
scope.inSession( scope.inSession(
session -> { session -> {