1 Reply Latest reply on Sep 12, 2012 5:34 AM by Bartosz Majsak

    How can I run a method in-container when the @Test is @RunAsClient?

    Noah White Newbie

      I have a test class in 'mixed-mode', however I would like my @Before method to always run in-container but it follows the @RunAs context. My use case is that I need to execute some DB init code that leverages an injected UserTransaction and EntityManager prior to @RunAsClient @Test methods running. Thoughts?

       

      Thanks,

       

      -Noah