Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-377

Company model factory improvements to test persistent interfaces

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • JDO 2 rc1
    • None
    • tck
    • None

    Description

      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.

      Attachments

        1. LifecycleCompleteness.java
          14 kB
          Craig L Russell
        2. lifecyclecompleteness.conf
          0.5 kB
          Craig L Russell
        3. JDO-377-mbo.patch
          30 kB
          Michael Bouschen
        4. JDO-377.patch
          16 kB
          Craig L Russell

        Activity

          People

            clr Craig L Russell
            clr Craig L Russell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: