1 Reply Latest reply on May 21, 2014 3:04 AM by Karel Piwko

    Support for @BeforeDeployment or similar?

    Elias Ross Master

      I have a use case where I need to run a simple socket listener before my deployment is created. I came up with something cheesy like this:

       

      public class PushTest extends Arquillian {
      
          static TestServer server = null;
      
          @Deployment
          public static WebArchive createTestArchive() {
               server = new TestServer();
      

       

      The reason I don't run the mock server inside the container is it pulls in some different dependencies, although I suppose I could do that.

       

      Another approach would be a way to have a '@RunAsClient' method execute before the deployment takes place?