2 Replies Latest reply on Sep 23, 2011 7:59 AM by Michael Boitet

    Arquillian and @Before and @After annotations

    Michael Boitet Newbie

      Hi all,

      As a newbee, I am struggling with a little problem running my tests with Arquillian in the as-client Mode with jUnit 4.

      I can't get my setup and teardown methods executed, (decorated with classic @Before and @After annotations).


      Basically my code looks like this



      public class FunctionnalTestAdvices {


      @Deployment(testable = false)

          public static JavaArchive createTestArchive() {

              return ShrinkWrap.create(JavaArchive.class, "test.jar")





          public void someTest() {





          public void setup() {

              doBeforeTest(); //never gets executed




          public void tearDown()  {

              doAfterTest(); //never gets executed





      Are this methods supported by the Arquillian runner ?


      Any help or insights would be appreciated.