|
9 | 9 | import java.util.List;
|
10 | 10 | import java.util.Objects;
|
11 | 11 | 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; |
17 | 12 |
|
18 | 13 | import org.hibernate.annotations.Filter;
|
19 | 14 | import org.hibernate.annotations.FilterDef;
|
20 | 15 | import org.hibernate.annotations.ParamDef;
|
21 | 16 | import org.hibernate.reactive.mutiny.Mutiny;
|
22 | 17 | import org.hibernate.reactive.stage.Stage;
|
23 |
| -import org.hibernate.reactive.testing.DatabaseSelectionRule; |
24 | 18 | import org.hibernate.type.descriptor.java.StringJavaType;
|
| 19 | + |
25 | 20 | import org.junit.Before;
|
26 |
| -import org.junit.Rule; |
27 | 21 | import org.junit.Test;
|
28 | 22 |
|
29 | 23 | import io.smallrye.mutiny.Uni;
|
30 | 24 | 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; |
31 | 30 |
|
32 | 31 | 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; |
35 | 32 |
|
36 | 33 | /**
|
37 | 34 | * Test the combination of filters, max results and first result.
|
38 | 35 | */
|
39 | 36 | public class FilterWithPaginationTest extends BaseReactiveTest {
|
40 | 37 |
|
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 |
| - |
45 | 38 | FamousPerson margaret = new FamousPerson( 1L, "Margaret Howe Lovatt", Status.LIVING, "the woman who lived in a half-flooded home with a dolphin." );
|
46 | 39 | FamousPerson nellie = new FamousPerson( 2L, "Nellie Bly", Status.DECEASED, "In 1888, she traveled around the world in 72 days." );
|
47 | 40 | 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