Class EmbeddedCargoApplicationContainer

    • Field Detail

      • httpPort

        protected final int httpPort
      • container

        protected C extends org.codehaus.cargo.container.Container container
        Expected to be set by the constructor of the derived class. Conceptually final --- no update after that.
      • deployerFactory

        protected final org.codehaus.cargo.generic.deployer.DefaultDeployerFactory deployerFactory
      • deployableFactory

        protected final org.codehaus.cargo.generic.deployable.DefaultDeployableFactory deployableFactory
    • Constructor Detail

      • EmbeddedCargoApplicationContainer

        public EmbeddedCargoApplicationContainer​(WsTool wsimport,
                                                 WsTool wsgen,
                                                 String containerId,
                                                 int port,
                                                 boolean httpspi)
    • Method Detail

      • needsArchive

        protected boolean needsArchive()
        True if the Cargo implementation only takes a .war file and not the exploded war image. Not creating a war file makes the testing faster.
      • start

        public void start()
                   throws Exception
        Description copied from interface: ApplicationContainer
        Starts the container. This is invoked at the very beginning before any service is deployed.
        Throws:
        Exception
      • shutdown

        public void shutdown()
                      throws Exception
        Description copied from interface: ApplicationContainer
        Stops the container. This is invoked at the end to clean up any resources.
        Throws:
        Exception
      • getFreePort

        public static int getFreePort()
      • getTransport

        public String getTransport()
        Description copied from interface: ApplicationContainer
        Returns the transport that this container uses for testing.
        Returns:
        For example, "http", "local", "tcp", "jms", etc. It should match the scheme portion of the endpoint address URI. Never null. This value is compared in the descriptor's transport declaration to decide wheter to run a test or not.