Change assertions expecting rownum expression is used

This commit is contained in:
Fabio Massimo Ercoli 2022-01-04 16:59:42 +01:00 committed by Christian Beikov
parent 3095116bcf
commit ef4b2732d3
1 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ public class OraclePaginationWithLocksTest {
.setMaxResults( 10 ) .setMaxResults( 10 )
.getResultList(); .getResultList();
assertEquals( 10, people.size() ); assertEquals( 10, people.size() );
assertTrue( mostRecentStatementInspector.sqlContains( "fetch" ) ); assertTrue( mostRecentStatementInspector.sqlContains( "rownum" ) );
} }
); );
@ -183,7 +183,7 @@ public class OraclePaginationWithLocksTest {
.setMaxResults( 10 ) .setMaxResults( 10 )
.getResultList(); .getResultList();
assertEquals( 10, people.size() ); assertEquals( 10, people.size() );
assertTrue( mostRecentStatementInspector.sqlContains( "fetch" ) ); assertTrue( mostRecentStatementInspector.sqlContains( "rownum" ) );
} }
); );
@ -219,7 +219,7 @@ public class OraclePaginationWithLocksTest {
.setMaxResults( 10 ) .setMaxResults( 10 )
.getResultList(); .getResultList();
assertEquals( 1, people.size() ); assertEquals( 1, people.size() );
assertTrue( mostRecentStatementInspector.sqlContains( "fetch" ) ); assertTrue( mostRecentStatementInspector.sqlContains( "rownum" ) );
} }
); );