1 26 27 package org.objectweb.jonas_client.deployment.tests; 28 29 import java.io.Reader ; 30 31 import org.objectweb.jonas_client.deployment.lib.ClientDeploymentDescManager; 32 import org.objectweb.jonas_client.deployment.xml.JonasClient; 33 34 import org.objectweb.jonas_lib.deployment.tests.AbsDeploymentTest; 35 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 36 37 38 43 public class JonasClientDeploymentTest extends AbsDeploymentTest { 44 45 46 49 public AbsElement getTopLevelElement() throws Exception { 50 JonasClient jonasclient = new JonasClient(); 51 return jonasclient; 52 } 53 54 57 public String parse(Reader reader, String name, boolean validation) throws Exception { 58 ClientDeploymentDescManager.setParsingWithValidation(validation); 59 String xmlParsed = ClientDeploymentDescManager.loadJonasClient(reader, "test").toXML(); 60 return xmlParsed; 61 } 62 63 64 } 65 | Popular Tags |