]
Juraci Paixao Krohling commented on HHH-3946:
---------------------------------------------
Check the other branches for this test and close if no other changes are needed. Trunk
already have this issue fixed.
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: