@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();
}
Currently Before/After methods are only supported incontainer.