2 Replies Latest reply on Feb 2, 2012 12:55 PM by gvagenas

    Problem with @Before - @After methods for in-container mode

    gvagenas

      Working with an unmanaged deployment and container in manualy mode. I notice that when running on in-container test mode there is an problem with the @Before and @After methods.

      More specific for the first test in the suite, only the @Before method is being called while the @After method is never get called. For the rest of the test cases, neither the @Before nor the @After method is get called.

       

      Switching to as-client test mode everything is working as expected.

       

      Searching the forum i found some issues similar to the one i have here, but that was either before you provide support for these annotations (https://community.jboss.org/thread/157577) or it was refering to the  as-client test mode (https://community.jboss.org/thread/172717).

       

      I tested with 1.0.0.CR7 and the latest Core master branch.

       

      Any ideas?

       

      Regards

      George