[
https://issues.jboss.org/browse/ARQ-1071?page=com.atlassian.jira.plugin.s...
]
Aslak Knutsen updated ARQ-1071:
-------------------------------
Fix Version/s: (was: 1.0.4.Final)
NullPointerException when timeout is set in @Test when using JUnit
------------------------------------------------------------------
Key: ARQ-1071
URL:
https://issues.jboss.org/browse/ARQ-1071
Project: Arquillian
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 1.0.0.Final, 1.0.1.Final
Reporter: Rick-Rainer Ludwig
When defining a timeout in @Test of JUnit Arquillian throws a NullPointerException:
{code}
java.lang.NullPointerException
at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)
at
org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOfTimeout.java:62)
{code}
The code to reproduce this:
{code}
import org.jboss.arquillian.junit.Arquillian;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(Arquillian.class)
public class TestTimeout {
@Test(timeout = 3000)
public void test() throws Exception {
Thread.sleep(1000);
}
}
{code}
--
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