Change assertions expecting rownum expression is used
This commit is contained in:
parent
3095116bcf
commit
ef4b2732d3
|
@ -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" ) );
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue