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

    "@BeforeClass" for tests in as-client mode

    Juergen Zimmermann Master

      @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();

      }