Skip to content

Commit d76bb72

Browse files
committed
[#689] Disable some tests with Db2
There is a bug in Vert.x client that causes some tests to fail with Db2. We need to re-enable these tests once the issue has been solved. See: eclipse-vertx/vertx-sql-client#920
1 parent b68775d commit d76bb72

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@
1616
import javax.persistence.Table;
1717

1818
import org.hibernate.cfg.Configuration;
19+
import org.hibernate.reactive.testing.DatabaseSelectionRule;
1920

2021
import org.junit.After;
2122
import org.junit.Before;
23+
import org.junit.Rule;
2224
import org.junit.Test;
2325

2426
import io.smallrye.mutiny.Uni;
2527
import io.vertx.ext.unit.TestContext;
2628

2729
import static org.assertj.core.api.Assertions.assertThat;
30+
import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.DB2;
31+
import static org.hibernate.reactive.testing.DatabaseSelectionRule.skipTestsFor;
2832

2933
/**
3034
* Tests @{@link ElementCollection} on a {@link List} of basic types.
@@ -43,6 +47,9 @@
4347
*/
4448
public class EagerElementCollectionForBasicTypeListTest extends BaseReactiveTest {
4549

50+
@Rule
51+
public DatabaseSelectionRule db2WithVertx4BugRule = skipTestsFor( DB2 );
52+
4653
private Person thePerson;
4754

4855
protected Configuration constructConfiguration() {

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

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,32 @@
55
*/
66
package org.hibernate.reactive;
77

8-
import io.vertx.ext.unit.TestContext;
8+
import java.util.Objects;
9+
import javax.persistence.Entity;
10+
import javax.persistence.FetchType;
11+
import javax.persistence.Id;
12+
import javax.persistence.ManyToOne;
13+
import javax.persistence.OneToOne;
14+
import javax.persistence.Table;
15+
916
import org.hibernate.cfg.Configuration;
17+
import org.hibernate.reactive.testing.DatabaseSelectionRule;
1018

1119
import org.junit.After;
20+
import org.junit.Rule;
1221
import org.junit.Test;
1322

14-
import javax.persistence.*;
15-
import java.util.Objects;
23+
import io.vertx.ext.unit.TestContext;
1624

25+
import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.DB2;
26+
import static org.hibernate.reactive.testing.DatabaseSelectionRule.skipTestsFor;
1727
import static org.hibernate.reactive.util.impl.CompletionStages.completedFuture;
1828

1929
public class EagerOneToOneAssociationTest extends BaseReactiveTest {
2030

31+
@Rule
32+
public DatabaseSelectionRule db2WithVertx4BugRule = skipTestsFor( DB2 );
33+
2134
@Override
2235
protected Configuration constructConfiguration() {
2336
Configuration configuration = super.constructConfiguration();

0 commit comments

Comments
 (0)