Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 66055 invoked from network); 21 Sep 2005 03:45:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Sep 2005 03:45:39 -0000 Received: (qmail 96210 invoked by uid 500); 21 Sep 2005 03:45:39 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Delivered-To: moderator for jdo-dev@db.apache.org Received: (qmail 94695 invoked by uid 99); 21 Sep 2005 01:31:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Message-ID: <1949860144.1127266288569.JavaMail.jira@ajax.apache.org> Date: Wed, 21 Sep 2005 03:31:28 +0200 (CEST) From: "Craig Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Updated: (JDO-140) Add get/setRollbackOnly tests In-Reply-To: <452582559.1127260648017.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JDO-140?page=all ] Craig Russell updated JDO-140: ------------------------------ Attachment: jdo140patch.txt These are the two test cases in patch format. > 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 A13.4.5-2 > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira