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.JonasConnector; 36 37 41 public class JonasRarDeploymentTest extends AbsDeploymentTest { 42 43 46 47 public AbsElement getTopLevelElement() throws Exception { 48 JonasConnector jconnector = new JonasConnector(); 49 return jconnector; 50 } 51 52 55 56 public String parse(Reader reader, String name, boolean validation) throws Exception { 57 RarDeploymentDescManager.setParsingWithValidation(validation); 58 String xmlParsed = RarDeploymentDescManager.loadJonasConnector(reader, "test").toXML(); 59 return xmlParsed; 60 } 61 62 } 63 | Popular Tags |