[
https://issues.apache.org/jira/browse/LUCENE-3506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135004#comment-13135004
]
Robert Muir commented on LUCENE-3506:
-------------------------------------
maybe make assertionsEnabled() static in LuceneTestCase, and add
assertTrue(assertionsEnabled()) in LuceneTestCase's beforeClass?
This way all tests will fail if assertions are not enabled.
The other day I committed an accidental change to common-build that disabled
assertions, and it was a little confusing to track down.
> tests for verifying that assertions are enabled do nothing since they ignore
> AssertionError
> -------------------------------------------------------------------------------------------
>
> Key: LUCENE-3506
> URL: https://issues.apache.org/jira/browse/LUCENE-3506
> Project: Lucene - Java
> Issue Type: Bug
> Components: general/test
> Reporter: Doron Cohen
> Assignee: Doron Cohen
> Priority: Minor
> Attachments: LUCENE-3506.patch
>
>
> Follow-up from LUCENE-3501
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]