[hibernate-commits] Hibernate SVN: r10416 - branches/Branch_3_2/Hibernate3/test/org/hibernate/test/subclassfilter

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Fri Sep 1 16:36:19 EDT 2006


Author: steve.ebersole at jboss.com
Date: 2006-09-01 16:36:18 -0400 (Fri, 01 Sep 2006)
New Revision: 10416

Modified:
   branches/Branch_3_2/Hibernate3/test/org/hibernate/test/subclassfilter/JoinedSubclassFilterTest.java
Log:
test data cleanup

Modified: branches/Branch_3_2/Hibernate3/test/org/hibernate/test/subclassfilter/JoinedSubclassFilterTest.java
===================================================================
--- branches/Branch_3_2/Hibernate3/test/org/hibernate/test/subclassfilter/JoinedSubclassFilterTest.java	2006-09-01 20:36:02 UTC (rev 10415)
+++ branches/Branch_3_2/Hibernate3/test/org/hibernate/test/subclassfilter/JoinedSubclassFilterTest.java	2006-09-01 20:36:18 UTC (rev 10416)
@@ -48,7 +48,7 @@
 			final Person p = ( Person ) itr.next();
 			if ( p.getName().equals( "John Doe" ) ) {
 				Employee john = ( Employee ) p;
-				assertEquals( "Incorrect fecthed minions count", 2, john.getMinions().size() );
+				assertEquals( "Incorrect fetched minions count", 2, john.getMinions().size() );
 				break;
 			}
 		}
@@ -66,7 +66,7 @@
 			final Person p = ( Person ) itr.next();
 			if ( p.getName().equals( "John Doe" ) ) {
 				Employee john = ( Employee ) p;
-				assertEquals( "Incorrect fecthed minions count", 2, john.getMinions().size() );
+				assertEquals( "Incorrect fetched minions count", 2, john.getMinions().size() );
 				break;
 			}
 		}
@@ -80,13 +80,19 @@
 			final Person p = ( Person ) itr.next();
 			if ( p.getName().equals( "John Doe" ) ) {
 				Employee john = ( Employee ) p;
-				assertEquals( "Incorrect fecthed minions count", 2, john.getMinions().size() );
+				assertEquals( "Incorrect fetched minions count", 2, john.getMinions().size() );
 				break;
 			}
 		}
 
 		t.commit();
 		s.close();
+
+		s = openSession();
+		t = s.beginTransaction();
+		s.createQuery( "delete Person" ).executeUpdate();
+		t.commit();
+		s.close();
 	}
 
 	private void prepareTestData(Session s) {




More information about the hibernate-commits mailing list