[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3946) Test FooBarTest isn't opening transactions and contains an invalid assertion
Juraci Paixao Krohling (JIRA)
noreply at atlassian.com
Fri Jun 5 08:09:13 EDT 2009
Test FooBarTest isn't opening transactions and contains an invalid assertion
----------------------------------------------------------------------------
Key: HHH-3946
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3946
Project: Hibernate Core
Issue Type: Bug
Components: testsuite
Reporter: Juraci Paixao Krohling
Assignee: Juraci Paixao Krohling
Fix For: 3.5
Attachments: FooBarTest.java.diff
Test FooBarTest have three tests failing:
- testDisconnect
- testOrderBy
- testVeto
All of them are issuing commit to transactions which were not started, causing "Transaction not successfully started" error. Also, the test testOrderBy contains an invalid assertion. The code reads:
assertEquals( "'b' isn't second element", "b", ( (One) results.get(2) ).getValue() );
But as the method "get" is 0-indexed, the parameter should be 1, instead of 2.
The attached patch fixes those issues.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list