1 26 27 package org.objectweb.jonas_rar.deployment.tests; 28 29 30 import java.io.Reader ; 31 32 import org.objectweb.jonas_lib.deployment.tests.AbsDeploymentTest; 33 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 34 import org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager; 35 import org.objectweb.jonas_rar.deployment.xml.Connector; 36 37 42 public class RarDeploymentTest extends AbsDeploymentTest { 43 44 47 48 public AbsElement getTopLevelElement() throws Exception { 49 Connector connector = new Connector(); 50 return connector; 51 } 52 53 56 57 public String parse(Reader reader, String name, boolean validation) throws Exception { 58 RarDeploymentDescManager.setParsingWithValidation(validation); 59 String xmlParsed = RarDeploymentDescManager.loadConnector(reader, "test").toXML(); 60 return xmlParsed; 61 } 62 63 } 64 | Popular Tags |