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