db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilan Kirsh (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-423) Missing addTearDownClass in org.apache.jdo.tck.query.jdoql.variables.VariablesWithoutExtent
Date Sun, 10 Sep 2006 19:09:22 GMT
    [ http://issues.apache.org/jira/browse/JDO-423?page=comments#action_12433724 ] 
            
Ilan Kirsh commented on JDO-423:
--------------------------------

Thanks Michael.

I tried several runs of the TCK tests that ObjectDB already passes with application identity.

1st run (ordinary) - All passed
2nd run - with the implementation of deletePersistentAll in a comment - 134 failed
3rd run (ordinary) - 52 failed (because of undeleted objects from the previous run)
4th run (ordinary) -1 fail
5th run (ordinary) -1 fail

The one that keeps failing is VariablesWithoutExtent and the error message is: "instance with
key '1' already exists". Finally I could pass also this test again without deleting the database,
using:

    protected void localSetUp() {
        addTearDownClass(CompanyModelReader.getTearDownClasses());

        loadAndPersistCompanyModel(getPM());
        NoExtent noExtent = new NoExtent(1);
        try {
            makePersistent(noExtent);
        }
        catch (JDOUserException x) {
            noExtent = (NoExtent)pm.getObjectById(
                new IntIdentity(NoExtent.class, 1));
        }
        addTearDownInstance(noExtent);
    }

I don't know  if this workaround can fit every configuration and every implementation, but
it should give the general idea of the problem.

Regards,

Ilan


> Missing addTearDownClass in org.apache.jdo.tck.query.jdoql.variables.VariablesWithoutExtent
> -------------------------------------------------------------------------------------------
>
>                 Key: JDO-423
>                 URL: http://issues.apache.org/jira/browse/JDO-423
>             Project: JDO
>          Issue Type: Bug
>          Components: tck20
>    Affects Versions: JDO 2 final
>            Reporter: Ilan Kirsh
>            Priority: Minor
>
> Lines 101- 108, instead of:
>     protected void localSetUp() {
>         addTearDownClass(CompanyModelReader.getTearDownClasses());
>         loadAndPersistCompanyModel(getPM());
>         NoExtent noExtent = new NoExtent(1);
>         makePersistent(noExtent);
>         addTearDownInstance(noExtent);
>     }
> should be:
>     protected void localSetUp() {
>         addTearDownClass(CompanyModelReader.getTearDownClasses());
>         addTearDownClass(NoExtent.class); // Added missing addTearDownClass
>         loadAndPersistCompanyModel(getPM());
>         NoExtent noExtent = new NoExtent(1);
>         makePersistent(noExtent);
>         addTearDownInstance(noExtent);
>     }

-- 
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

        

Mime
View raw message