HHH-16406 - Fix error in PaginationTest for Sybase
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
parent
75a32e9492
commit
efa7ec172e
|
@ -36,11 +36,11 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
"org/hibernate/orm/test/pagination/DataPoint.hbm.xml"
|
"org/hibernate/orm/test/pagination/DataPoint.hbm.xml"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@SessionFactory
|
|
||||||
public class PaginationTest {
|
public class PaginationTest {
|
||||||
public static final int NUMBER_OF_TEST_ROWS = 100;
|
public static final int NUMBER_OF_TEST_ROWS = 100;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SessionFactory
|
||||||
public void testLimit(SessionFactoryScope scope) {
|
public void testLimit(SessionFactoryScope scope) {
|
||||||
scope.inTransaction(
|
scope.inTransaction(
|
||||||
session -> {
|
session -> {
|
||||||
|
@ -74,6 +74,7 @@ public class PaginationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SessionFactory
|
||||||
public void testOffset(SessionFactoryScope scope) {
|
public void testOffset(SessionFactoryScope scope) {
|
||||||
scope.inTransaction(
|
scope.inTransaction(
|
||||||
session -> {
|
session -> {
|
||||||
|
@ -91,7 +92,7 @@ public class PaginationTest {
|
||||||
|
|
||||||
assertEquals(
|
assertEquals(
|
||||||
firstDataPointHQL,
|
firstDataPointHQL,
|
||||||
firstDataPointHQL,
|
firstDataPointCriteria,
|
||||||
"The first entry should be the same in HQL and Criteria"
|
"The first entry should be the same in HQL and Criteria"
|
||||||
);
|
);
|
||||||
assertEquals( 3, firstDataPointCriteria.getSequence(), "Wrong first result" );
|
assertEquals( 3, firstDataPointCriteria.getSequence(), "Wrong first result" );
|
||||||
|
@ -103,7 +104,7 @@ public class PaginationTest {
|
||||||
|
|
||||||
assertEquals(
|
assertEquals(
|
||||||
firstDataPointHQL,
|
firstDataPointHQL,
|
||||||
firstDataPointHQL,
|
firstDataPointCriteria,
|
||||||
"The first entry should be the same in HQL and Criteria"
|
"The first entry should be the same in HQL and Criteria"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -111,6 +112,7 @@ public class PaginationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SessionFactory
|
||||||
public void testLimitOffset(SessionFactoryScope scope) {
|
public void testLimitOffset(SessionFactoryScope scope) {
|
||||||
scope.inTransaction(
|
scope.inTransaction(
|
||||||
session -> {
|
session -> {
|
||||||
|
|
Loading…
Reference in New Issue