1 26 27 package org.objectweb.jonas_web.deployment.tests; 28 29 import java.io.Reader ; 30 31 import org.objectweb.jonas_lib.deployment.tests.AbsDeploymentTest; 32 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 33 import org.objectweb.jonas_web.deployment.lib.WebDeploymentDescManager; 34 import org.objectweb.jonas_web.deployment.xml.WebApp; 35 36 41 public class WebDeploymentTest extends AbsDeploymentTest { 42 43 47 public AbsElement getTopLevelElement() throws Exception { 48 WebApp webApp = new WebApp(); 49 return webApp; 50 } 51 52 62 public String parse(Reader reader, String name, boolean validation) throws Exception { 63 WebDeploymentDescManager.setParsingWithValidation(validation); 64 String xmlParsed = WebDeploymentDescManager.loadWebApp(reader, "test").toXML(); 65 return xmlParsed; 66 } 67 68 } | Popular Tags |