Skip to content

Commit 23ec6eb

Browse files
committed
[#1532] Disable UTCTest for Oracle
1 parent bbb2df4 commit 23ec6eb

File tree

1 file changed

+11
-0
lines changed
  • hibernate-reactive-core/src/test/java/org/hibernate/reactive

1 file changed

+11
-0
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/UTCTest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,26 @@
2727

2828
import org.hibernate.cfg.AvailableSettings;
2929
import org.hibernate.cfg.Configuration;
30+
import org.hibernate.reactive.testing.DatabaseSelectionRule;
3031

32+
import org.junit.Rule;
3133
import org.junit.Test;
3234

3335
import io.vertx.ext.unit.TestContext;
3436

37+
import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.ORACLE;
38+
3539
import static org.hibernate.reactive.util.impl.CompletionStages.loop;
3640

3741
public class UTCTest extends BaseReactiveTest {
3842

43+
// testDate(), testCalendar(), testLocalDateTime() & testZonedDateTime() fail with....
44+
//
45+
// throws jakarta.persistence.NoResultException: No result found for query [from ThingInUTC where date=:dt]
46+
// at app//org.hibernate.reactive.query.spi.ReactiveAbstractSelectionQuery.reactiveSingleResult(ReactiveAbstractSelectionQuery.java:175)
47+
@Rule
48+
public final DatabaseSelectionRule skip = DatabaseSelectionRule.skipTestsFor( ORACLE );
49+
3950
@Override
4051
public CompletionStage<Void> deleteEntities(Class<?>... entities) {
4152
return getSessionFactory()

0 commit comments

Comments
 (0)