]
Steve Ebersole updated HHH-3946:
--------------------------------
Fix Version/s: (was: 3.5.1)
3.5.x
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.x
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: