1 16 17 package org.apache.axis2.integration; 18 19 import junit.framework.TestCase; 20 import org.apache.axis2.om.OMAbstractFactory; 21 import org.apache.axis2.om.OMConstants; 22 import org.apache.axis2.om.OMNamespace; 23 import org.apache.axis2.soap.SOAPFactory; 24 25 import java.io.File ; 26 import java.net.MalformedURLException ; 27 import java.net.URL ; 28 import java.net.URLClassLoader ; 29 30 public class EchoTest extends TestCase { 31 private final SOAPFactory fac = OMAbstractFactory.getSOAP11Factory(); 32 private final OMNamespace ns = 33 fac.createOMNamespace("http://apache.ws.apache.org/samples", "samples"); 34 private final OMNamespace arrayNs = 35 fac.createOMNamespace(OMConstants.ARRAY_ITEM_NSURI, OMConstants.ARRAY_ITEM_NS_PREFIX); 36 private final OMNamespace targetNs = fac.createOMNamespace("http://axis.apache.org", "s"); 37 private final URLClassLoader cl; 38 39 public EchoTest() throws MalformedURLException { 40 cl = 41 new URLClassLoader ( 42 new URL [] { new File ("target/test-resources/samples/services/echo.jar").toURL()}, 43 EchoTest.class.getClassLoader()); 44 } 45 46 public EchoTest(String arg0) throws MalformedURLException { 47 super(arg0); 48 cl = 49 new URLClassLoader ( 50 new URL [] { new File ("target/test-resources/samples/services/echo.jar").toURL()}, 51 EchoTest.class.getClassLoader()); 52 53 } 54 55 151 public void testEchoStruct() throws Exception { 152 } 219 220 } 302 | Popular Tags |