1 26 27 package org.objectweb.jonas_ejb.deployment.tests; 28 29 import java.io.Reader ; 30 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 31 import org.objectweb.jonas_lib.deployment.tests.AbsDeploymentTest; 32 import org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager; 33 import org.objectweb.jonas_ejb.deployment.lib.wrapper.EjbManagerWrapper; 34 import org.objectweb.jonas_ejb.deployment.xml.EjbJar; 35 36 40 public class EJBDeploymentTest extends AbsDeploymentTest { 41 42 45 46 public AbsElement getTopLevelElement() throws Exception { 47 EjbJar ejbApp = new EjbJar(); 48 return ejbApp; 49 } 50 51 54 55 public String parse(Reader reader, String name, boolean validation) throws Exception { 56 EjbDeploymentDescManager.getInstance().setParsingWithValidation(validation); 57 String xmlParsed = EjbDeploymentDescManager.getInstance().loadEjbJar(reader, "test").toXML(); 58 return xmlParsed; 59 } 60 61 62 63 } 64 | Popular Tags |