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