Apache JDO Project - [jira] Commented: (JDO-423) Missing addTearDownClass in

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > September 2006 > [jira] Commented: (JDO-423) Missing addTearDownClass in





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Commented: (JDO-423) Missing addTearDownClass in
Michael Bouschen (JIRA)

2006-09-10, 1:11 pm

[ http://issues.apache.org/jira/brows...action_12433704 ]

Michael Bouschen commented on JDO-423:
--------------------------------------

Method localSetUp registers the NoExtent instance for removal during tearDown by calling addTearDownInstance(noExtent) at the end. We cannot use method addTearDownClass for class NoExtent. Method tearDown gets the extent for all classes registered using a
ddTearDownClass and this would fail for class NoExtent, because the metatdata defines requires-extent="false".

I propose to close this issue as invalid. What do you think?

> 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/secur...nistrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com