lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-3857) exceptions from other threads in beforeclass/etc do not fail the test
Date Thu, 08 Mar 2012 14:51:57 GMT
exceptions from other threads in beforeclass/etc do not fail the test
---------------------------------------------------------------------

                 Key: LUCENE-3857
                 URL: https://issues.apache.org/jira/browse/LUCENE-3857
             Project: Lucene - Java
          Issue Type: Task
            Reporter: Robert Muir


Lots of tests create indexes in beforeClass methods, but if an exception is thrown from another
thread
it won't fail the test... e.g. this test passes:
{code}
public class TestExc extends LuceneTestCase {
  @BeforeClass
  public static void beforeClass() {
    new Thread() {
      public void run() {
        throw new RuntimeException("boo!");
      }  
    }.start();
  }
  
  public void test() { }
}
{code}

this is because the uncaught exception handler is in setup/teardown

--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message