]
Fernando Villarejo commented on ARQ-1071:
-----------------------------------------
Bug is present in versiĆ³n 1.4.0Final.
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
Affects Versions: 1.0.0.Final, 1.0.1.Final, 1.1.3.Final
Reporter: Rick-Rainer Ludwig
Assignee: Aslak Knutsen
Priority: Major
Fix For: 1.1.4.Final
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}