HHH-16406 - Fix error in PaginationTest for Sybase

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2023-03-29 19:46:57 +02:00 committed by Jan Schatteman
parent 7db9bc83c1
commit 9991b9d32c
1 changed files with 5 additions and 3 deletions

View File

@ -36,11 +36,11 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
"org/hibernate/orm/test/pagination/DataPoint.hbm.xml"
}
)
@SessionFactory
public class PaginationTest {
public static final int NUMBER_OF_TEST_ROWS = 100;
@Test
@SessionFactory
public void testLimit(SessionFactoryScope scope) {
scope.inTransaction(
session -> {
@ -74,6 +74,7 @@ public class PaginationTest {
}
@Test
@SessionFactory
public void testOffset(SessionFactoryScope scope) {
scope.inTransaction(
session -> {
@ -91,7 +92,7 @@ public class PaginationTest {
assertEquals(
firstDataPointHQL,
firstDataPointHQL,
firstDataPointCriteria,
"The first entry should be the same in HQL and Criteria"
);
assertEquals( 3, firstDataPointCriteria.getSequence(), "Wrong first result" );
@ -103,7 +104,7 @@ public class PaginationTest {
assertEquals(
firstDataPointHQL,
firstDataPointHQL,
firstDataPointCriteria,
"The first entry should be the same in HQL and Criteria"
);
}
@ -111,6 +112,7 @@ public class PaginationTest {
}
@Test
@SessionFactory
public void testLimitOffset(SessionFactoryScope scope) {
scope.inTransaction(
session -> {