1 26 27 package org.objectweb.jonas_ear.deployment.tests; 28 29 30 import java.io.Reader ; 31 32 import org.objectweb.jonas_ear.deployment.lib.EarDeploymentDescManager; 33 import org.objectweb.jonas_ear.deployment.xml.Application; 34 import org.objectweb.jonas_lib.deployment.tests.AbsDeploymentTest; 35 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 36 37 42 public class EarDeploymentTest extends AbsDeploymentTest { 43 44 49 public AbsElement getTopLevelElement() throws Exception { 50 Application app = new Application(); 51 return app; 52 } 53 54 65 public String parse(Reader reader, String name, boolean validation) throws Exception { 66 EarDeploymentDescManager.setParsingWithValidation(validation); 67 String xmlParsed = EarDeploymentDescManager.loadApplication(reader, "test").toXML(); 68 return xmlParsed; 69 } 70 71 72 } 73 | Popular Tags |