[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3946) Test FooBarTest isn't opening transactions and contains an invalid assertion

Juraci Paixao Krohling (JIRA) noreply at atlassian.com
Mon Jun 29 09:21:15 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33491#action_33491 ] 

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: 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