Skip to content

Commit f89a212

Browse files
DavideDSanne
authored andcommitted
[#1560] Re-enable FilterWithPaginationTest for Db2
THe upgrade to Vert.x 4.2.2 solves the issue.
1 parent 89ccee1 commit f89a212

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

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

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,32 @@
99
import java.util.List;
1010
import java.util.Objects;
1111
import java.util.concurrent.CompletionStage;
12-
import jakarta.persistence.Entity;
13-
import jakarta.persistence.EnumType;
14-
import jakarta.persistence.Enumerated;
15-
import jakarta.persistence.Id;
16-
import jakarta.persistence.NamedQuery;
1712

1813
import org.hibernate.annotations.Filter;
1914
import org.hibernate.annotations.FilterDef;
2015
import org.hibernate.annotations.ParamDef;
2116
import org.hibernate.reactive.mutiny.Mutiny;
2217
import org.hibernate.reactive.stage.Stage;
23-
import org.hibernate.reactive.testing.DatabaseSelectionRule;
2418
import org.hibernate.type.descriptor.java.StringJavaType;
19+
2520
import org.junit.Before;
26-
import org.junit.Rule;
2721
import org.junit.Test;
2822

2923
import io.smallrye.mutiny.Uni;
3024
import io.vertx.ext.unit.TestContext;
25+
import jakarta.persistence.Entity;
26+
import jakarta.persistence.EnumType;
27+
import jakarta.persistence.Enumerated;
28+
import jakarta.persistence.Id;
29+
import jakarta.persistence.NamedQuery;
3130

3231
import static org.assertj.core.api.Assertions.assertThat;
33-
import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.DB2;
34-
import static org.hibernate.reactive.testing.DatabaseSelectionRule.skipTestsFor;
3532

3633
/**
3734
* Test the combination of filters, max results and first result.
3835
*/
3936
public class FilterWithPaginationTest extends BaseReactiveTest {
4037

41-
// Db2: java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long
42-
@Rule
43-
public final DatabaseSelectionRule skipDb2 = skipTestsFor( DB2 );
44-
4538
FamousPerson margaret = new FamousPerson( 1L, "Margaret Howe Lovatt", Status.LIVING, "the woman who lived in a half-flooded home with a dolphin." );
4639
FamousPerson nellie = new FamousPerson( 2L, "Nellie Bly", Status.DECEASED, "In 1888, she traveled around the world in 72 days." );
4740
FamousPerson hedy = new FamousPerson( 3L, "Hedy Lamarr", Status.DECEASED, "Actress and co-inventor of an early version of frequency-hopping spread spectrum communication for torpedo guidance." );

0 commit comments

Comments
 (0)