Chris M. Hostetter created SOLR-16983:
-----------------------------------------
Summary: ObjectReleaseTracker completely useless in all
SolrTestCaseJ4 based tests
Key: SOLR-16983
URL: https://issues.apache.org/jira/browse/SOLR-16983
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Reporter: Chris M. Hostetter
{{SolrTestCase}} has a {{@ClassRule}} named {{solrClassRules}} which calls
{{ObjectReleaseTracker.clearObjectTrackerAndCheckEmpty()}} in it's
{{afterIfSuccessful()}} method to ensure that any objects which use
{{ObjectReleaseTracker}} are correctly released (ie: closed)
_*...BUT...*_
{{SolrTestCaseJ4}} has an {{@AfterClass}} method named {{teardownTestCases()}}
which calls {{ObjectReleaseTracker.clear()}} _before_ the
{{afterIfSuccessful()}} method of it's parent class's {{solrClassRules}} gets
to run.
... Which means that {{ObjectReleaseTracker}} is completley useless in every
test that descends from {{{}SolrTestCaseJ4{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]