Issue Details (XML | Word | Printable)

Key: JDO-190
Type: Test Test
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Craig Russell
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.getDataStoreCache()

Created: 19/Oct/05 06:51 AM   Updated: 26/Mar/06 10:33 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
Java Source File Licensed for inclusion in ASF works DataStoreCacheTest.java 2006-03-08 11:54 AM Craig Russell 3 kB
Environment: TCK

Resolution Date: 09/Mar/06 04:03 AM


 Description  « Hide
A11.8-1 [To obtain a reference to the cache manager, the getDataStoreCache() method of PersistenceManagerFactory is used. DataStoreCache getDataStoreCache(); If there is no second-level cache, the returned instance silently does nothing.]

The test calls getDataStoreCache() and verifies that the returned instance is not null.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell added a comment - 08/Mar/06 11:54 AM
Please review this test case. There is no mandated behavior so this test just makes sure that exceptions are not thrown.

Michael Bouschen added a comment - 09/Mar/06 02:59 AM
Looks good.

Just a minor comment: I would move method localSetUp after method main.

Craig Russell added a comment - 09/Mar/06 04:03 AM
svn commit -m "JDO-190 Added test for DataStoreCache" src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreCacheTest.java src/conf/pm.conf
Sending src/conf/pm.conf
Adding src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreCacheTest.java
Transmitting file data ..
Committed revision 384312.

Michelle Caisse added a comment - 26/Mar/06 10:33 AM
Updated Implemented to yes in spreadsheet.