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.JonasWebApp; 35 36 41 public class JonasWebDeploymentTest extends AbsDeploymentTest { 42 43 47 public AbsElement getTopLevelElement() throws Exception { 48 JonasWebApp jonasWebApp = new JonasWebApp(); 49 return jonasWebApp; 50 } 51 52 62 public String parse(Reader reader, String name, boolean validation) throws Exception { 63 WebDeploymentDescManager.setParsingWithValidation(validation); 64 String xmlParsed = WebDeploymentDescManager.loadJonasWebApp(reader, "test").toXML(); 65 return xmlParsed; 66 } 67 68 } | Popular Tags |