[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3946?page=c...
]
Gail Badner updated HHH-3946:
-----------------------------
This issue is currently scheduled for 3.5.x, but not 3.6. Should this issue be fixed in
3.6 as well (or instead)? If so, please correct the fix version(s).
Thanks,
Gail
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:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira