[arquillian-issues] [JBoss JIRA] (ARQ-1873) @ServerSetup annotation is not inherited by JUnit test classes.

Richard Rattigan (JIRA) issues at jboss.org
Wed Oct 22 09:17:35 EDT 2014


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)


More information about the arquillian-issues mailing list