Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1873

@ServerSetup annotation is not inherited by JUnit test classes.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.1.5.Final
    • None
    • None

    Description

      Code below does not work as expected - MySetup is not run:

      @ServerSetup(MySetup.class)
      public class BaseTest {...}
      
      public class MyTest1 extends BaseTest {...}
      
      public class MyTest2 extends BaseTest {...}
      

      Workaround is to repeat the annotation on every test class:

      public class BaseTest {...}
      
      @ServerSetup(MySetup.class)
      public class MyTest1 extends BaseTest {...}
      
      @ServerSetup(MySetup.class)
      public class MyTest2 extends BaseTest {...}
      

      I haven't tested this with other test frameworks, just JUnit.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rattigan_jira Richard Rattigan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: