Issue Details (XML | Word | Printable)

Key: JDO-189
Type: Test Test
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Martin Zaun
Reporter: Craig Russell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Add test for PersistenceManagerFactory.close() and isClosed()

Created: 19/Oct/05 06:49 AM   Updated: 28/Mar/06 07:19 AM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 beta
Fix Version/s: JDO 2 final

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-189.patch 2006-03-28 06:14 AM Martin Zaun 2 kB
Environment: TCK

Resolution Date: 28/Mar/06 07:19 AM


 Description  « Hide
A11.4-10 [boolean isClosed(); Return true if this PersistenceManagerFactory is closed; and false otherwise.]

The test gets the PMF and verifies that isClosed() returns false. The test then calls close() and tests that isClosed() returns true.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell made changes - 04/Feb/06 04:27 AM
Field Original Value New Value
Fix Version/s JDO 2 rc1 [ 12310771 ]
Affects Version/s JDO 2 beta [ 12310683 ]
Martin Zaun made changes - 09/Feb/06 09:23 AM
Assignee Martin Zaun [ mzaun ]
Craig Russell made changes - 25/Feb/06 07:41 AM
Fix Version/s JDO 2 final [ 12310830 ]
Fix Version/s JDO 2 rc1 [ 12310771 ]
Repository Revision Date User Message
ASF #389307 Mon Mar 27 22:16:41 UTC 2006 mzaun JDO-189 - Extended test for PMF.isClosed()
Files Changed
MODIFY /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/Close.java

Martin Zaun added a comment - 28/Mar/06 06:14 AM
Attached is a patch extending exisisting test ..api.persistencemanagerfactory.Close
currently only testing pmf.close() (A11.4-2) to also test pmf.isClosed() (A11.4-10).

Martin Zaun made changes - 28/Mar/06 06:14 AM
Attachment JDO-189.patch [ 12324621 ]
Martin Zaun added a comment - 28/Mar/06 07:19 AM
Added at end of test(): nullify field 'pmf' to have next invocation of getPMF() get a new pmf.
Committed in revision 389307.

Martin Zaun made changes - 28/Mar/06 07:19 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]