[hibernate-commits] Hibernate SVN: r14203 - annotations/trunk/src/test/org/hibernate/test/annotations.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Nov 19 12:12:16 EST 2007


Author: epbernard
Date: 2007-11-19 12:12:16 -0500 (Mon, 19 Nov 2007)
New Revision: 14203

Modified:
   annotations/trunk/src/test/org/hibernate/test/annotations/EntityTest.java
Log:
wrong test

Modified: annotations/trunk/src/test/org/hibernate/test/annotations/EntityTest.java
===================================================================
--- annotations/trunk/src/test/org/hibernate/test/annotations/EntityTest.java	2007-11-19 17:09:43 UTC (rev 14202)
+++ annotations/trunk/src/test/org/hibernate/test/annotations/EntityTest.java	2007-11-19 17:12:16 UTC (rev 14203)
@@ -322,12 +322,13 @@
 		Query q = s.createQuery( "from Flight f where f.departureDate = :departureDate" );
 		q.setParameter( "departureDate", airFrance.getDepartureDate(), Hibernate.DATE );
 		Flight copyAirFrance = (Flight) q.uniqueResult();
-		assertNotNull( airFrance );
+		assertNotNull( copyAirFrance );
 		assertEquals(
 				new Date( 05, 06, 21 ),
 				copyAirFrance.getDepartureDate()
 		);
 		assertEquals( copyAirFrance.getBuyDate().getTime() / 1000 , airFrance.getBuyDate().getTime() / 1000 );
+
 		s.delete( copyAirFrance );
 		tx.commit();
 		s.close();




More information about the hibernate-commits mailing list