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.xml.JonasEjbJar; 34 38 public class JonasEJBDeploymentTest extends AbsDeploymentTest { 39 40 43 44 public AbsElement getTopLevelElement() throws Exception { 45 JonasEjbJar JonasEjbApp = new JonasEjbJar(); 46 return JonasEjbApp; 47 } 48 51 52 public String parse(Reader reader, String name, boolean validation) throws Exception { 53 EjbDeploymentDescManager.setParsingWithValidation(validation); 54 String xmlParsed = EjbDeploymentDescManager.loadJonasEjbJar(reader, "test").toXML(); 55 return xmlParsed; 56 } 57 58 59 60 } 61 | Popular Tags |