1 Reply Latest reply on Mar 26, 2011 7:06 AM by aslak

    "@BeforeClass" for tests in as-client mode

    juergen.zimmermann

      @BeforeClass isn't invoked on the client side for my tests in as-client mode. Maybe I'm doing something wrong when using Alpha5. Here is the code fragment:

       

      public abstract class AbstractTest {

      @Deployment(testable = false)

      public static EnterpriseArchive createTestArchive() {...}

       

      @BeforeClass

      public static void setup() {...}

      ...

      }

       

      @RunWith(Arquillian.class)

      public class BestellverwaltungTest extends AbstractTest {...}

       

      As workaround I added a static block to the AbstractTest class, and everything is working as expected:

      static {

         setup();

      }