HHH-5700 incorrect test logic of org.hibernate.test.readonly.ReadOnlyCriteriaQueryTest

This commit is contained in:
Strong Liu 2010-11-02 20:47:37 +08:00
parent 528b652d07
commit ba040a3378
1 changed files with 3 additions and 3 deletions

View File

@ -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 );
}