Package org.apache.cactus.integration.ant.container

Examples of org.apache.cactus.integration.ant.container.Container


    {
        if (isReference())
        {
            throw noChildrenAllowed();
        }
        Container container = this.factory.createContainer(theName);
        this.containers.add(container);
        return container;
    }
View Full Code Here


    {
        executeTestTarget();
        ContainerSet set = (ContainerSet) getProject().getReference("test");
        Container[] containers = set.getContainers();
        assertEquals(1, containers.length);
        Container container = (Container) containers[0];
        assertEquals(8080, container.getPort());
    }
View Full Code Here

    {
        executeTestTarget();
        ContainerSet set = (ContainerSet) getProject().getReference("test");
        Container[] containers = set.getContainers();
        assertEquals(1, containers.length);
        Container container = containers[0];
        assertEquals(8088, container.getPort());
    }
View Full Code Here

        assertNull("The shutdown hook should not have been executed",
            getProject().getProperty("shutdown.executed"));

        // Call the startup and shutdown hooks and assert that they have been
        // executed
        Container container = containers[0];
        container.startUp();
        assertEquals("The startup hook should have been executed, ",
            "true", getProject().getProperty("startup.executed"));
        container.shutDown();
        assertEquals("The shutdown hook should have been executed, ",
            "true", getProject().getProperty("shutdown.executed"));
    }
View Full Code Here

    {
        if (isReference())
        {
            throw noChildrenAllowed();
        }
        Container container = this.factory.createContainer(theName);
        this.containers.add(container);
        return container;
    }
View Full Code Here

    {
        if (isReference())
        {
            throw noChildrenAllowed();
        }
        Container container = this.factory.createContainer(theName);
        this.containers.add(container);
        return container;
    }
View Full Code Here

    {
        executeTestTarget();
        ContainerSet set = (ContainerSet) getProject().getReference("test");
        Container[] containers = set.getContainers();
        assertEquals(1, containers.length);
        Container container = (Container) containers[0];
        assertEquals(8080, container.getPort());
    }
View Full Code Here

    {
        executeTestTarget();
        ContainerSet set = (ContainerSet) getProject().getReference("test");
        Container[] containers = set.getContainers();
        assertEquals(1, containers.length);
        Container container = containers[0];
        assertEquals(8088, container.getPort());
    }
View Full Code Here

        assertNull("The shutdown hook should not have been executed",
            getProject().getProperty("shutdown.executed"));

        // Call the startup and shutdown hooks and assert that they have been
        // executed
        Container container = containers[0];
        container.startUp();
        assertEquals("The startup hook should have been executed, ",
            "true", getProject().getProperty("startup.executed"));
        container.shutDown();
        assertEquals("The shutdown hook should have been executed, ",
            "true", getProject().getProperty("shutdown.executed"));
    }
View Full Code Here

    {
        executeTestTarget();
        ContainerSet set = (ContainerSet) getProject().getReference("test");
        Container[] containers = set.getContainers();
        assertEquals(1, containers.length);
        Container container = (Container) containers[0];
        assertEquals(8080, container.getPort());
    }
View Full Code Here

TOP

Related Classes of org.apache.cactus.integration.ant.container.Container

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.