|
From: <hib...@li...> - 2006-07-05 16:35:44
|
Author: ste...@jb...
Date: 2006-07-05 12:35:26 -0400 (Wed, 05 Jul 2006)
New Revision: 10085
Modified:
trunk/Hibernate3/test/org/hibernate/test/hql/BulkManipulationTest.java
Log:
fixed test
Modified: trunk/Hibernate3/test/org/hibernate/test/hql/BulkManipulationTest.java
===================================================================
--- trunk/Hibernate3/test/org/hibernate/test/hql/BulkManipulationTest.java 2006-07-05 15:03:52 UTC (rev 10084)
+++ trunk/Hibernate3/test/org/hibernate/test/hql/BulkManipulationTest.java 2006-07-05 16:35:26 UTC (rev 10085)
@@ -452,7 +452,13 @@
public void testIncorrectSyntax() {
Session s = openSession();
Transaction t = s.beginTransaction();
- s.createQuery( "update Human set Human.description = 'xyz' where Human.id = 1 and Human.description is null" ).executeUpdate();
+ try {
+ s.createQuery( "update Human set Human.description = 'xyz' where Human.id = 1 and Human.description is null" );
+ fail( "expected failure" );
+ }
+ catch( QueryException expected ) {
+ // ignore : expected behavior
+ }
t.commit();
s.close();
}
|