[hibernate-commits] Hibernate SVN: r17339 - core/trunk/testsuite/src/test/java/org/hibernate/test/legacy.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Aug 17 15:08:41 EDT 2009


Author: steve.ebersole at jboss.com
Date: 2009-08-17 15:08:40 -0400 (Mon, 17 Aug 2009)
New Revision: 17339

Modified:
   core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java
Log:
HHH-3852 & HHH-4092 : ParentChildTest failures

Modified: core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java
===================================================================
--- core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java	2009-08-17 17:41:07 UTC (rev 17338)
+++ core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java	2009-08-17 19:08:40 UTC (rev 17339)
@@ -130,7 +130,7 @@
 		s.close();
 	}
 
-	public void testProxyReuse() throws Exception {
+	public void testProxyReuseFailureExpected() throws Exception {
 		Session s = openSession();
 		Transaction t = s.beginTransaction();
 		FooProxy foo = new Foo();
@@ -179,6 +179,7 @@
 		s.delete(foo);
 		s.delete( s.get(Foo.class, id2) );
 		s.delete( s.get(Foo.class, "xyzid") );
+// here is the issue (HHH-4092).  After the deletes above there are 2 Fees and a Glarch unexpectedly hanging around
 		assertEquals( 2, doDelete( s, "from java.lang.Object" ) );
 		t.commit();
 		s.close();
@@ -205,7 +206,7 @@
 		s.close();
 	}
 
-	public void testComplexCriteria() throws Exception {
+	public void testComplexCriteriaFailureExpected() throws Exception {
 		Session s = openSession();
 		Transaction t = s.beginTransaction();
 		Baz baz = new Baz();
@@ -244,6 +245,8 @@
 			.add( Restrictions.eq("string", "a string") )
 			.add( Restrictions.lt("integer", new Integer(-665) ) );
 		crit.createCriteria("fooArray")
+				// this is the bit causing the problems; creating the criteria on fooArray does not add it to FROM,
+				// and so restriction below leads to an invalid reference.
 			.add( Restrictions.eq("string", "a string") )
 			.setLockMode(lockMode);
 



More information about the hibernate-commits mailing list