Examples of DefaultWarArchive


Examples of org.codehaus.cargo.module.webapp.DefaultWarArchive

    public void testLoginConfigNotOverwritten() throws Exception
    {
        executeTestTarget();

        File destFile = getProject().resolveFile("target/work/destfile.war");
        WarArchive destWar = new DefaultWarArchive(destFile.getAbsolutePath());
        WebXml webXml = destWar.getWebXml();
        assertEquals("FORM", webXml.getLoginConfigAuthMethod());
    }
View Full Code Here

Examples of org.codehaus.cargo.module.webapp.DefaultWarArchive

    public void testAddWeblogicEjbRefs() throws Exception
    {
        executeTestTarget();
       
        File destFile = getProject().resolveFile("target/work/destfile.war");
        WarArchive destWar = new DefaultWarArchive(destFile.getAbsolutePath());
       
        // test web.xml
        WebXml webXml = destWar.getWebXml();
        Iterator i = webXml.getElements(WebXmlTag.EJB_LOCAL_REF);
        Element e = (Element) i.next();
        NodeList nl = e.getElementsByTagName("ejb-ref-name");
        Element f = (Element) nl.item(0);
        assertEquals("MyEjb", f.getFirstChild().getNodeValue());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.