Issue Details (XML | Word | Printable)

Key: JDO-377
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
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

Company model factory improvements to test persistent interfaces

Created: 30/Apr/06 02:08 PM   Updated: 18/Jan/08 07:21 PM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 rc1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-377-mbo.patch 2006-05-01 11:00 PM Michael Bouschen 30 kB
Text File Licensed for inclusion in ASF works JDO-377.patch 2006-04-30 02:17 PM Craig Russell 16 kB
File Licensed for inclusion in ASF works lifecyclecompleteness.conf 2006-04-30 02:17 PM Craig Russell 0.5 kB
Java Source File Licensed for inclusion in ASF works LifecycleCompleteness.java 2006-04-30 02:17 PM Craig Russell 14 kB


 Description  « Hide
Please review this patch.

In order to test persistent interfaces better, a method was added to the CompanyFactory interface to allow the test program to get the persistent instances.

List getAllInstances();

To implement this new API, changes were made to the factory implementation classes to keep track of instances as they were created.

Additionally, only classes (or interfaces) actually instantiated were put into the tearDown class array. So Person.class and Employee.class were removed from the array.

Finally, a bug was fixed in CompanyFactoryPMClass where the interface IMedicalInsurance.class was incorrectly added to the tearDown class array.

A new test class was used for testing. This class might be added to the TCK if suitable.

And a new configuration was used for testing.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.