From ba040a3378bd3a6606219ad529111fc936c8896f Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Tue, 2 Nov 2010 20:47:37 +0800 Subject: [PATCH] HHH-5700 incorrect test logic of org.hibernate.test.readonly.ReadOnlyCriteriaQueryTest --- .../hibernate/test/readonly/ReadOnlyCriteriaQueryTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/readonly/ReadOnlyCriteriaQueryTest.java b/hibernate-core/src/test/java/org/hibernate/test/readonly/ReadOnlyCriteriaQueryTest.java index f66d46fdb5..45c320a306 100755 --- a/hibernate-core/src/test/java/org/hibernate/test/readonly/ReadOnlyCriteriaQueryTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/readonly/ReadOnlyCriteriaQueryTest.java @@ -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 ); }