lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
Subject [jira] [Updated] (SOLR-543) AbstractSolrTestCase should have automatic check for loggd exceptions
Date Thu, 28 Feb 2013 13:05:17 GMT

     [ https://issues.apache.org/jira/browse/SOLR-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jan Høydahl updated SOLR-543:
-----------------------------


This issue has been inactive for more than 4 years. Please close if it's no longer relevant/needed,
or bring it up to date if you intend to work on it. SPRING_CLEANING_2013
                
> AbstractSolrTestCase should have automatic check for loggd exceptions
> ---------------------------------------------------------------------
>
>                 Key: SOLR-543
>                 URL: https://issues.apache.org/jira/browse/SOLR-543
>             Project: Solr
>          Issue Type: Test
>            Reporter: Hoss Man
>
> SOLR-509 and SOLR-541 got me thinking: it would be really nice if AbstractSolrTestCase
had some code such that:
> * setUp() registered a LogHandler that kept a record of any LogRecord that was:
> ** SEVERE
> ** WARNING
> ** contained a Throwable
> * assertLog(Level, Class<Throwable>) could be called in the body of test methods
to ensure that at a certain point a LogRecord with a particular level and/or type of Throwable
had in fact been logged and note that it was expected.
> * tearDown() would inspect the LogHandler to assert no LogRecords exist that have not
already been noted as expected.
> Something like this would allow us to make sure that nothing "bad" was getting logged
even if the API being tested presented a happy shiny face to the world -- and to check that
in situations where something bad *should* be logged, that it is.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message