Issue Details (XML | Word | Printable)

Key: JDO-294
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 FetchPlan

Created: 04/Feb/06 04:52 AM   Updated: 07/Mar/06 09:36 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 fetch-group.patch 2006-02-27 12:43 PM Craig Russell 2 kB
Java Source File Licensed for inclusion in ASF works FetchPlanTest.java 2006-03-02 09:56 AM Craig Russell 12 kB

Resolution Date: 07/Mar/06 09:36 AM


 Description  « Hide
New tests are needed for the FetchPlan interface.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell added a comment - 27/Feb/06 12:43 PM
I propose adding fetch-groups to the pc/company model and to the PCRect class in pc/mylib. Adding one fetch-group per relationship field should provide enough flexibility to test the fetch plan feature. The fetch plan algorithm crosses detach tests, makeTransient, and fetch plan.

Please comment on the attachment that shows what the fetch-group would look like for PCRect.

Craig Russell added a comment - 02/Mar/06 09:56 AM
Please review this test. It is basic, testing only the interface. The behavior with regard to the fetch plan (for queries, makeTransient, detachCopy, and DetachAllOnCommit) will be tested in different new test cases.

The test also does not yet include the changes required to verify that the return type of getGroups is Set and not Collection.

Craig Russell added a comment - 07/Mar/06 09:36 AM
Test cases have been checked in.