db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Closed: (JDO-140) Add get/setRollbackOnly tests
Date Tue, 27 Sep 2005 08:28:48 GMT
     [ http://issues.apache.org/jira/browse/JDO-140?page=all ]
Craig Russell closed JDO-140:

    Resolution: Fixed

New test cases were added; alltests.conf was updated with the new tests.

> Add get/setRollbackOnly tests
> -----------------------------
>          Key: JDO-140
>          URL: http://issues.apache.org/jira/browse/JDO-140
>      Project: JDO
>         Type: Test
>   Components: tck20
>  Environment: TCK
>     Reporter: Craig Russell
>     Assignee: Craig Russell
>  Attachments: jdo140patch.txt
> There are two test classes for get/setRollbackOnly.
> One test class transactions.AfterSetRollbackOnlyCommitFails tests assertion A13.4.5-1

> Once a transaction has been marked for rollback via setRollbackOnly, the commit method
will always fail with JDOFatalDataStoreException. 
> The strategy is to begin a transaction, set rollback only, and commit. The expected behavior
is to catch an exception.
> The second test class transactions.GetRollbackOnlyReturnsFalseUntilSet tests assertion
> After a transaction is begun, getRollbackOnly will return false until set commit or rollback
is called.
> The strategy is to begin a transaction, test that getRollbackOnly is false, setRollbackOnly,
and test that getRollbackOnly is true.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message