JDO
  1. JDO
  2. JDO-453

Create a test for illegal arguments for PersistenceManager.newInstance

    Details

      Description

      New test cases are needed for illegal arguments of newInstance.

      One strategy is to define classes in a new package along with metadata, but no mapping (since these are error classes). A new test should try to instantiate the classes using the newInstance method and verify that JDOUserException is thrown.

      Classes to test include:

      Abstract class with abstract method not declared as a property (missing metadata for the method)
      Interface with method not declared as a property (missing metadata for the method)
      Concrete class with missing public no-args constructor

      1. JDO-453.patch
        57 kB
        Michelle Caisse

        Issue Links

          Activity

          Craig L Russell created issue -
          Craig L Russell made changes -
          Field Original Value New Value
          Assignee Michelle Caisse [ mcaisse ]
          Michelle Caisse made changes -
          Link This issue is blocked by JDO-487 [ JDO-487 ]
          Michelle Caisse made changes -
          Attachment JDO-453.patch [ 12370755 ]
          Michelle Caisse made changes -
          Attachment JDO-453.patch [ 12370773 ]
          Michelle Caisse made changes -
          Attachment JDO-453.patch [ 12370755 ]
          Michelle Caisse made changes -
          Attachment JDO-453.patch [ 12370840 ]
          Michelle Caisse made changes -
          Attachment JDO-453.patch [ 12370773 ]
          Michelle Caisse made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Michelle Caisse made changes -
          Status Resolved [ 5 ] Reopened [ 4 ]
          Resolution Fixed [ 1 ]
          Michelle Caisse made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Resolved [ 5 ]
          Andy Jefferson made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Michelle Caisse
              Reporter:
              Craig L Russell
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development