Author: stliu
Date: 2010-05-02 10:36:40 -0400 (Sun, 02 May 2010)
New Revision: 19342
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java
Log:
can't open jira for now, the change of this commit only changes the methond of
testRowValueConstructorSyntaxInInList, instead of transaction commit, here i changed it to
rollback, since this may cause other test fails (org.hibernate.NonUniqueResultException:
query did not return a unique result: 3)
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java
===================================================================
---
core/trunk/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java 2010-05-02
14:20:53 UTC (rev 19341)
+++
core/trunk/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java 2010-05-02
14:36:40 UTC (rev 19342)
@@ -511,7 +511,7 @@
list.add( new Id("123456789", order.getId().getOrderNumber(),
"1234") );
query.setParameterList( "idList", list );
assertEquals( 2, query.list().size() );
- s.getTransaction().commit();
+ s.getTransaction().rollback();
s.close();
}
Show replies by date