HHH-5700 incorrect test logic of org.hibernate.test.readonly.ReadOnlyCriteriaQueryTest
This commit is contained in:
parent
528b652d07
commit
ba040a3378
|
@ -1143,7 +1143,7 @@ public class ReadOnlyCriteriaQueryTest extends AbstractReadOnlyTest {
|
|||
assertEquals( list.size(), 2 );
|
||||
|
||||
Enrolment e = ( Enrolment ) list.get( 0 );
|
||||
if ( e.getStudent().getStudentNumber() == xam.getStudentNumber() ) {
|
||||
if ( e.getStudent().getStudentNumber() == gavin.getStudentNumber() ) {
|
||||
enrolment1 = e;
|
||||
enrolment2 = ( Enrolment ) list.get( 1 );
|
||||
}
|
||||
|
@ -1181,7 +1181,7 @@ public class ReadOnlyCriteriaQueryTest extends AbstractReadOnlyTest {
|
|||
assertEquals( list.size(), 2 );
|
||||
|
||||
e = ( Enrolment ) list.get( 0 );
|
||||
if ( e.getStudent().getStudentNumber() == xam.getStudentNumber() ) {
|
||||
if ( e.getStudent().getStudentNumber() == gavin.getStudentNumber() ) {
|
||||
enrolment1 = e;
|
||||
enrolment2 = ( Enrolment ) list.get( 1 );
|
||||
}
|
||||
|
@ -1218,7 +1218,7 @@ public class ReadOnlyCriteriaQueryTest extends AbstractReadOnlyTest {
|
|||
assertEquals( list.size(), 2 );
|
||||
|
||||
e = ( Enrolment ) list.get( 0 );
|
||||
if ( e.getStudent().getStudentNumber() == xam.getStudentNumber() ) {
|
||||
if ( e.getStudent().getStudentNumber() == gavin.getStudentNumber() ) {
|
||||
enrolment1 = e;
|
||||
enrolment2 = ( Enrolment ) list.get( 1 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue