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.ApplicationClient; 33 34 import org.objectweb.jonas_lib.deployment.tests.AbsDeploymentTest; 35 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 36 37 42 public class ClientDeploymentTest extends AbsDeploymentTest { 43 44 45 48 public AbsElement getTopLevelElement() throws Exception { 49 ApplicationClient clientApp = new ApplicationClient(); 50 return clientApp; 51 } 52 53 56 public String parse(Reader reader, String name, boolean validation) throws Exception { 57 ClientDeploymentDescManager.setParsingWithValidation(validation); 58 String xmlParsed = ClientDeploymentDescManager.loadApplicationClient(reader, "test").toXML(); 59 return xmlParsed; 60 } 61 62 63 } 64 | Popular Tags |