You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Craig Russell (JIRA)" <ji...@apache.org> on 2006/12/18 20:43:20 UTC

[jira] Created: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Create a test for illegal arguments for PersistenceManager.newInstance
----------------------------------------------------------------------

                 Key: JDO-453
                 URL: http://issues.apache.org/jira/browse/JDO-453
             Project: JDO
          Issue Type: Test
          Components: tck2, tck2-legacy
    Affects Versions: JDO 2 final
            Reporter: Craig Russell
             Fix For: JDO 2 maintenance release 1


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


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547529 ] 

Craig Russell commented on JDO-453:
-----------------------------------

I couldn't find the *_bad.java classes in the attachment. I'm expecting that the comments in the class and mapping will further explain why they are not valid classes for the newInstance method. 


> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michelle Caisse reopened JDO-453:
---------------------------------


Need to update tck2-legacy

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551889 ] 

Craig Russell commented on JDO-453:
-----------------------------------

I didn't notice until just now that the spec is inconsistent.

In 12.6.6, 
an abstract class that is declared in the metadata as persistence-capable, in which all abstract methods are persistent properties, or 
an interface that is declared in the metadata as persistence-capable, in which all methods are persistent properties, or...
If the parameter does not satisfy the above requirements, JDOUserException is thrown.

But in 18.3,
Persistent properties declared in the interface are defined as those that have both a get and a set method or both an is and a set method, named according to the JavaBeans naming conventions, and of a type supported as a persistent type.
The implementing class will provide a suitable implementation for all property access methods and will throw JDOUserException for all other methods of the interface.

We need to clean up one or the other. :-(



> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547920 ] 

Craig Russell commented on JDO-453:
-----------------------------------

Some minor formatting issues and typos in comments. Otherwise, good to go.

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549597 ] 

Michelle Caisse commented on JDO-453:
-------------------------------------

Per discussion on JDO-559, I will remove tests in NewInstanceBadMapping and test for impl throwing JDOUserException with a persistent interface having a method that is not a property and an abstract class having an abstract method that is not a property.

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michelle Caisse updated JDO-453:
--------------------------------

    Attachment: JDO-453.patch

Please review.

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michelle Caisse updated JDO-453:
--------------------------------

    Attachment:     (was: JDO-453.patch)

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michelle Caisse updated JDO-453:
--------------------------------

    Attachment: JDO-453.patch

Previous patches lacked test newInstanceBadMapping.java and the associated mapping files org/apache/jdo/tck.pc/newInstance/package-standard1.orm

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michelle Caisse updated JDO-453:
--------------------------------

    Attachment:     (was: JDO-453.patch)

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michelle Caisse resolved JDO-453.
---------------------------------

    Resolution: Fixed

Complete with Revision: 604247

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547558 ] 

Craig Russell commented on JDO-453:
-----------------------------------

Just one comment. This code in AAddress_bad seems to be superfluous:
+    /** This is the JDO-required no-args constructor. The TCK relies on
+     * this constructor for testing PersistenceManager.newInstance(PCClass).
+     */
+    public Address_bad(String street, String city, String state, String zipcode) {
+        this.street = street;
+        this.city = city;
+        this.state = state;
+        this.zipcode = zipcode;
+    }
+
+    // pm.newInstance(this) throws JDOUserException with non-public constructor
+    private Address_bad() {}
+
I think all you need is 

+    // pm.newInstance(this) throws JDOUserException with non-public no-args constructor
+    private Address_bad() {}
+



> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michelle Caisse resolved JDO-453.
---------------------------------

    Resolution: Fixed

Merged changes to tck2-legacy. Completed: At revision: 609039  


> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473796 ] 

Michelle Caisse commented on JDO-453:
-------------------------------------

>From the spec (assertion numbers need to be added):

Object newInstance(Class persistenceCapable);

A12.6.6-1 [The parameter must be one of the following:
-  an abstract class that is declared in the metadata as persistence-capable, in which all abstract methods are declared as persistent properties, or 
-  an interface that is declared in the metadata as persistence-capable, in which all methods are declared as persistent properties, or
-  a concrete class that is declared in the metadata as persistence-capable. In this case, the concrete class must declare a public no-args constructor.

If the parameter does not satisfy the above requirements, JDOUserException is thrown.]
...
A12.6.6-2 [In order for the newInstance method to be used, the parameter interface must be completely mapped. For relational implementations, the interface must be mapped to a table and all persistent properties must be mapped to columns. Additionally, interfaces that are the targets of all relationships from persistent properties must also be mapped. Otherwise, JDOUserException is thrown by the newInstance method.]

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>         Assigned To: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Craig Russell reassigned JDO-453:
---------------------------------

    Assignee: Michelle Caisse

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>         Assigned To: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487652 ] 

Michelle Caisse commented on JDO-453:
-------------------------------------

Some simple positive tests with supporting pc classes and metadata was checked in (revision: 526946).  There are issues for which other JIRAs will be filed.
).

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>         Assigned To: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JDO-453) Create a test for illegal arguments for PersistenceManager.newInstance

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michelle Caisse updated JDO-453:
--------------------------------

    Attachment: JDO-453.patch

New patch containing *_bad.java

> Create a test for illegal arguments for PersistenceManager.newInstance
> ----------------------------------------------------------------------
>
>                 Key: JDO-453
>                 URL: https://issues.apache.org/jira/browse/JDO-453
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>    Affects Versions: JDO 2 final
>            Reporter: Craig Russell
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-453.patch, JDO-453.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.