Richard Rattigan created ARQ-1873:
-------------------------------------
Summary: @ServerSetup annotation is not inherited by JUnit test classes.
Key: ARQ-1873
URL:
https://issues.jboss.org/browse/ARQ-1873
Project: Arquillian
Issue Type: Bug
Affects Versions: 1.1.5.Final
Environment: I'm using JUnit.
Reporter: Richard Rattigan
Code below does not work as expected - {{MySetup}} is not run:
{code}
@ServerSetup(MySetup.class)
public class BaseTest {...}
public class MyTest1 extends BaseTest {...}
public class MyTest2 extends BaseTest {...}
{code}
Workaround is to repeat the annotation on every test class:
{code}
public class BaseTest {...}
@ServerSetup(MySetup.class)
public class MyTest1 extends BaseTest {...}
@ServerSetup(MySetup.class)
public class MyTest2 extends BaseTest {...}
{code}
I haven't tested this with other test frameworks, just JUnit.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)