Apache JDO Project - [jira] Created: (JDO-230) Fix order of makePersistent() and addTearDownClass() in loca

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > December 2005 > [jira] Created: (JDO-230) Fix order of makePersistent() and addTearDownClass() in loca





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Created: (JDO-230) Fix order of makePersistent() and addTearDownClass() in loca
Michael Watzek (JIRA)

2005-12-07, 5:45 pm

Fix order of makePersistent() and addTearDownClass() in localSetUp methods
--------------------------------------------------------------------------

Key: JDO-230
URL: http://issues.apache.org/jira/browse/JDO-230
Project: JDO
Type: Bug
Components: tck20
Versions: JDO 2 beta
Reporter: Michael Watzek
Assigned to: Michael Watzek
Priority: Minor
Fix For: JDO 2 beta


The order of calls makePersistent() and addTearDownClass() in localSetUp methods is significant: addTearDownClass() must be called before makePersistent(). This ensures that the next test run will cleanup the database.

Currently, many tests call makePersistent() before addTearDownClass(). Given that there is data in the database that will cause a duplicate key exception, the database will not be cleaned up, because tear down classes have not been added at the time the e
xception is thrown.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com