|
You are right.
The new methods are indeed in JDOHelper not in PersistenceManager. So the test needs to be written for the JDOHelper class. I'd propose the new test case api.jdohelper.GetObjectIds with test methods testGetObjectIdsCollection and testGetObjectIdsArray. The collection of parameter objects should include null, transient instances, and persistent instances from multiple persistence managers. The JDOHelper checked into the repository does not include the new methods, so as part of this work the methods need to be added. Please review this patch for JDOHelper.java and GetObjectIds.java.
The patch has been tested against the latest JPOX build. The patch looks good.
Just one remark: the localSetUp method creates a second PM which is not closed in the test case. Should we add a localTearDown method coling this PM? This patch includes comments from Michael (thanks, I missed the cleanup of the second PM), an update to the alltests.conf, and a slightly different implementation of JDOHelper.getObjectIds(Object[ ]).
I plan to check it in tomorrow. Added tests for JDOHelper.getObjectIds
Committed revision 329926, accidentally including patch for instancecallbacks teardown. Committed revision 329927. Reopened to set the Fix Version/s field to JDO 2 beta.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Should'nt the above be api.jdohelper.GetObjectIds