You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2012/03/09 23:25:01 UTC
svn commit: r1299078 [2/4] - in /axis/axis1/java/trunk/integration: ./
src/test/java/test/ src/test/java/test/functional/
src/test/java/test/import2/ src/test/java/test/wsdl/_import/
src/test/java/test/wsdl/any/ src/test/java/test/wsdl/anytype/ src/tes...
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/marshall/MarshallTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/marshall/MarshallTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/marshall/MarshallTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/marshall/MarshallTestCase.java Fri Mar 9 22:24:59 2012
@@ -13,6 +13,8 @@ import org.apache.axis.Message;
import org.apache.axis.message.MessageElement;
import org.apache.axis.message.SOAPBody;
+import test.HttpTestUtil;
+
public class MarshallTestCase extends junit.framework.TestCase {
private static final String DIMS = "[3]";
@@ -24,10 +26,8 @@ public class MarshallTestCase extends ju
public void testMarshallPortWSDL() throws Exception {
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory
.newInstance();
- java.net.URL url = new java.net.URL(
- new test.wsdl.marshall.MarshallLocator()
- .getMarshallPortAddress()
- + "?WSDL");
+ java.net.URL url = HttpTestUtil.getTestEndpoint(
+ new MarshallLocator().getMarshallPortAddress() + "?WSDL");
javax.xml.rpc.Service service = serviceFactory.createService(url,
new test.wsdl.marshall.MarshallLocator().getServiceName());
assertTrue(service != null);
@@ -36,8 +36,8 @@ public class MarshallTestCase extends ju
public void test1MarshallPortMyBeanArray() throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -56,8 +56,8 @@ public class MarshallTestCase extends ju
public void test2MarshallPortMyBeanMultiArray() throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -77,8 +77,8 @@ public class MarshallTestCase extends ju
public void test3MarshallPortMyBean() throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -97,8 +97,8 @@ public class MarshallTestCase extends ju
public void test4MarshallPortArrayOfSoapEncString() throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -128,8 +128,8 @@ public class MarshallTestCase extends ju
public void test5MarshallPortArrayOfXsdString() throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -159,8 +159,8 @@ public class MarshallTestCase extends ju
public void test6MarshallPortArrayOfbase64Binary() throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -188,8 +188,8 @@ public class MarshallTestCase extends ju
public void test7MarshallPortArrayOfhexBinary() throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -217,8 +217,8 @@ public class MarshallTestCase extends ju
public void test8MarshallPortArrayOfsoapencbase64() throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -247,8 +247,8 @@ public class MarshallTestCase extends ju
throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -278,8 +278,8 @@ public class MarshallTestCase extends ju
public void test10MarshallPortArrayOfhexBinaryUnbounded() throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -309,8 +309,8 @@ public class MarshallTestCase extends ju
throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -340,8 +340,8 @@ public class MarshallTestCase extends ju
public void test12MarshallPortArrayOfArrayOfSoapEncString() throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -411,8 +411,8 @@ public class MarshallTestCase extends ju
public void test13MarshallPortArrayOfArrayOfinteger() throws Exception {
test.wsdl.marshall.MarshallBindingStub binding;
try {
- binding = (test.wsdl.marshall.MarshallBindingStub) new test.wsdl.marshall.MarshallLocator()
- .getMarshallPort();
+ MarshallLocator loc = new MarshallLocator();
+ binding = (MarshallBindingStub)loc.getMarshallPort(HttpTestUtil.getTestEndpoint(loc.getMarshallPortAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/marshall2/Marshall2ServiceTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/marshall2/Marshall2ServiceTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/marshall2/Marshall2ServiceTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/marshall2/Marshall2ServiceTestCase.java Fri Mar 9 22:24:59 2012
@@ -16,6 +16,7 @@ import java.util.Calendar;
import java.util.GregorianCalendar;
import java.net.URI;
+import test.HttpTestUtil;
import test.wsdl.marshall2.types.JavaBean;
import test.wsdl.marshall2.types.JavaBean2;
@@ -26,7 +27,7 @@ public class Marshall2ServiceTestCase ex
public void testMarshall2PortWSDL() throws Exception {
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
- java.net.URL url = new java.net.URL(new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2PortAddress() + "?WSDL");
+ java.net.URL url = HttpTestUtil.getTestEndpoint(new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2PortAddress() + "?WSDL");
javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.marshall2.Marshall2ServiceLocator().getServiceName());
assertTrue(service != null);
}
@@ -34,8 +35,8 @@ public class Marshall2ServiceTestCase ex
public void test1Marshall2PortBigDecimalArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -59,8 +60,8 @@ public class Marshall2ServiceTestCase ex
public void test2Marshall2PortBigDecimalTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -81,8 +82,8 @@ public class Marshall2ServiceTestCase ex
public void test3Marshall2PortBigIntegerArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -107,8 +108,8 @@ public class Marshall2ServiceTestCase ex
public void test4Marshall2PortBigIntegerTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -129,8 +130,8 @@ public class Marshall2ServiceTestCase ex
public void test5Marshall2PortBooleanArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -151,8 +152,8 @@ public class Marshall2ServiceTestCase ex
public void test6Marshall2PortBooleanTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -173,8 +174,8 @@ public class Marshall2ServiceTestCase ex
public void test7Marshall2PortByteArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -195,8 +196,8 @@ public class Marshall2ServiceTestCase ex
public void test8Marshall2PortByteTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -217,8 +218,8 @@ public class Marshall2ServiceTestCase ex
public void test9Marshall2PortDoubleArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -239,8 +240,8 @@ public class Marshall2ServiceTestCase ex
public void test10Marshall2PortDoubleTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -261,8 +262,8 @@ public class Marshall2ServiceTestCase ex
public void test11Marshall2PortFloatArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -283,8 +284,8 @@ public class Marshall2ServiceTestCase ex
public void test12Marshall2PortFloatTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -305,8 +306,8 @@ public class Marshall2ServiceTestCase ex
public void test13Marshall2PortIntArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -327,8 +328,8 @@ public class Marshall2ServiceTestCase ex
public void test14Marshall2PortIntTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -349,8 +350,8 @@ public class Marshall2ServiceTestCase ex
public void test15Marshall2PortLongArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -371,8 +372,8 @@ public class Marshall2ServiceTestCase ex
public void test16Marshall2PortLongTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -393,8 +394,8 @@ public class Marshall2ServiceTestCase ex
public void test17Marshall2PortShortArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -415,8 +416,8 @@ public class Marshall2ServiceTestCase ex
public void test18Marshall2PortShortTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -437,8 +438,8 @@ public class Marshall2ServiceTestCase ex
public void test19Marshall2PortStringArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -464,8 +465,8 @@ public class Marshall2ServiceTestCase ex
public void test20Marshall2PortStringTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -486,8 +487,8 @@ public class Marshall2ServiceTestCase ex
public void test21Marshall2PortQnameTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -508,8 +509,8 @@ public class Marshall2ServiceTestCase ex
public void test22Marshall2PortQnameArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -533,8 +534,8 @@ public class Marshall2ServiceTestCase ex
public void test23Marshall2PortCalendarArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -558,8 +559,8 @@ public class Marshall2ServiceTestCase ex
public void test24Marshall2PortCalendarTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -580,8 +581,8 @@ public class Marshall2ServiceTestCase ex
public void test25Marshall2PortJavaBeanArrayTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -649,8 +650,8 @@ public class Marshall2ServiceTestCase ex
public void test26Marshall2PortJavaBeanTest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -693,8 +694,8 @@ public class Marshall2ServiceTestCase ex
public void test27Marshall2PortAnyURITest() throws Exception {
test.wsdl.marshall2.MarshallTestSoapBindingStub binding;
try {
- binding = (test.wsdl.marshall2.MarshallTestSoapBindingStub)
- new test.wsdl.marshall2.Marshall2ServiceLocator().getMarshall2Port();
+ Marshall2ServiceLocator loc = new Marshall2ServiceLocator();
+ binding = (MarshallTestSoapBindingStub)loc.getMarshall2Port(HttpTestUtil.getTestEndpoint(loc.getMarshall2PortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/multiref/Main.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/multiref/Main.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/multiref/Main.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/multiref/Main.java Fri Mar 9 22:24:59 2012
@@ -17,6 +17,8 @@
package test.wsdl.multiref;
import org.apache.axis.utils.Options;
+
+import test.HttpTestUtil;
import test.wsdl.multiref.holders.NodeHolder;
import java.net.URL;
@@ -33,7 +35,7 @@ public class Main {
Options opts = new Options(args);
MultiRefTestService service = new MultiRefTestServiceLocator();
- opts.setDefaultURL( service.getMultiRefTestAddress() );
+ opts.setDefaultURL(HttpTestUtil.getTestEndpoint(service.getMultiRefTestAddress()).toString());
URL serviceURL = new URL(opts.getURL());
if (serviceURL == null)
serviceURL = new URL(service.getMultiRefTestAddress());
Added: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/names/javanames/JavaNamesServiceTestTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/names/javanames/JavaNamesServiceTestTestCase.java?rev=1299078&view=auto
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/names/javanames/JavaNamesServiceTestTestCase.java (added)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/names/javanames/JavaNamesServiceTestTestCase.java Fri Mar 9 22:24:59 2012
@@ -0,0 +1,88 @@
+/**
+ * JavaNamesServiceTestTestCase.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4.1-SNAPSHOT Mar 09, 2012 (11:21:16 GMT) WSDL2Java emitter.
+ */
+
+package test.wsdl.names.javanames;
+
+import test.HttpTestUtil;
+
+public class JavaNamesServiceTestTestCase extends junit.framework.TestCase {
+ public JavaNamesServiceTestTestCase(java.lang.String name) {
+ super(name);
+ }
+
+ public void testJavaNamesWSDL() throws Exception {
+ javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
+ java.net.URL url = HttpTestUtil.getTestEndpoint(new test.wsdl.names.javanames.JavaNamesServiceTestLocator().getJavaNamesAddress() + "?WSDL");
+ javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.names.javanames.JavaNamesServiceTestLocator().getServiceName());
+ assertTrue(service != null);
+ }
+
+ public void test1JavaNames_new() throws Exception {
+ test.wsdl.names.javanames.JavaNames_SOAPBindingStub binding;
+ try {
+ JavaNamesServiceTestLocator loc = new JavaNamesServiceTestLocator();
+ binding = (JavaNames_SOAPBindingStub)loc.getJavaNames(HttpTestUtil.getTestEndpoint(loc.getJavaNamesAddress()));
+ }
+ catch (javax.xml.rpc.ServiceException jre) {
+ if(jre.getLinkedCause()!=null)
+ jre.getLinkedCause().printStackTrace();
+ throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
+ }
+ assertNotNull("binding is null", binding);
+
+ // Time out after a minute
+ binding.setTimeout(60000);
+
+ // Test operation
+ binding._new(new java.lang.String(), new test.wsdl.names.javanames.MyAddress());
+ // TBD - validate results
+ }
+
+ public void test2JavaNames_public() throws Exception {
+ test.wsdl.names.javanames.JavaNames_SOAPBindingStub binding;
+ try {
+ JavaNamesServiceTestLocator loc = new JavaNamesServiceTestLocator();
+ binding = (JavaNames_SOAPBindingStub)loc.getJavaNames(HttpTestUtil.getTestEndpoint(loc.getJavaNamesAddress()));
+ }
+ catch (javax.xml.rpc.ServiceException jre) {
+ if(jre.getLinkedCause()!=null)
+ jre.getLinkedCause().printStackTrace();
+ throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
+ }
+ assertNotNull("binding is null", binding);
+
+ // Time out after a minute
+ binding.setTimeout(60000);
+
+ // Test operation
+ test.wsdl.names.javanames.MyAddress value = null;
+ value = binding._public(new java.lang.String());
+ // TBD - validate results
+ }
+
+ public void test3JavaNamesCapitalized() throws Exception {
+ test.wsdl.names.javanames.JavaNames_SOAPBindingStub binding;
+ try {
+ JavaNamesServiceTestLocator loc = new JavaNamesServiceTestLocator();
+ binding = (JavaNames_SOAPBindingStub)loc.getJavaNames(HttpTestUtil.getTestEndpoint(loc.getJavaNamesAddress()));
+ }
+ catch (javax.xml.rpc.ServiceException jre) {
+ if(jre.getLinkedCause()!=null)
+ jre.getLinkedCause().printStackTrace();
+ throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
+ }
+ assertNotNull("binding is null", binding);
+
+ // Time out after a minute
+ binding.setTimeout(60000);
+
+ // Test operation
+ binding.capitalized(new java.lang.String(), new test.wsdl.names.javanames.MyAddress());
+ // TBD - validate results
+ }
+
+}
Propchange: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/names/javanames/JavaNamesServiceTestTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/nested/Nested2ServiceTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/nested/Nested2ServiceTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/nested/Nested2ServiceTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/nested/Nested2ServiceTestCase.java Fri Mar 9 22:24:59 2012
@@ -7,6 +7,8 @@
package test.wsdl.nested;
import org.apache.axis.message.MessageElement;
+
+import test.HttpTestUtil;
import test.wsdl.nested.holders.PE_ADDRESSHolder;
import test.wsdl.nested.holders.RETURNHolder;
@@ -24,10 +26,11 @@ public class Nested2ServiceTestCase exte
}
*/
- public void test1NestedNestedSvc2() {
+ public void test1NestedNestedSvc2() throws Exception {
test.wsdl.nested.Nested2PortType binding;
try {
- binding = new test.wsdl.nested.Nested2ServiceLocator().getNested();
+ Nested2ServiceLocator loc = new Nested2ServiceLocator();
+ binding = loc.getNested(HttpTestUtil.getTestEndpoint(loc.getNestedAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
@@ -58,7 +61,7 @@ public class Nested2ServiceTestCase exte
}
}
- public static void main(String[] args){
+ public static void main(String[] args) throws Exception {
Nested2ServiceTestCase testcase = new Nested2ServiceTestCase("Nested2ServiceTestCase");
testcase.test1NestedNestedSvc2();
}
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/omit/OmitTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/omit/OmitTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/omit/OmitTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/omit/OmitTestCase.java Fri Mar 9 22:24:59 2012
@@ -38,6 +38,8 @@ import org.w3c.dom.NodeList;
import org.w3c.dom.Element;
import org.xml.sax.SAXException;
+import test.HttpTestUtil;
+
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.ParserConfigurationException;
@@ -61,10 +63,11 @@ public class OmitTestCase extends junit.
* - number is passed as null.
* There does not seem to be a good way to verify what's exchanged over the wire.
*/
- public void test1OmitEchoPhone() {
+ public void test1OmitEchoPhone() throws Exception {
test.wsdl.omit.Omit binding;
try {
- binding = new test.wsdl.omit.OmitTestLocator().getomit();
+ OmitTestLocator loc = new OmitTestLocator();
+ binding = loc.getomit(HttpTestUtil.getTestEndpoint(loc.getomitAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
@@ -90,10 +93,11 @@ public class OmitTestCase extends junit.
/**
* Testing if an exception is thrown when a required elemen is null.
*/
- public void test2OmitEchoPhone() {
+ public void test2OmitEchoPhone() throws Exception {
test.wsdl.omit.Omit binding;
try {
- binding = new test.wsdl.omit.OmitTestLocator().getomit();
+ OmitTestLocator loc = new OmitTestLocator();
+ binding = loc.getomit(HttpTestUtil.getTestEndpoint(loc.getomitAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
@@ -115,12 +119,12 @@ public class OmitTestCase extends junit.
* A simple test to validate if WSDL generated by Axis' ?WSDL properly
* generates nillable properties.
*/
- public void testGeneratedWSDL() {
+ public void testGeneratedWSDL() throws Exception {
boolean testedAreaCode = false;
boolean testedPrefix = false;
boolean testedNumber = false;
// URL for omit's wsdl
- String url = new test.wsdl.omit.OmitTestLocator().getomitAddress() + "?WSDL";
+ String url = HttpTestUtil.getTestEndpoint(new test.wsdl.omit.OmitTestLocator().getomitAddress()) + "?WSDL";
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = null;
try {
@@ -166,7 +170,7 @@ public class OmitTestCase extends junit.
}
}
- public static void main(String[] args) {
+ public static void main(String[] args) throws Exception {
OmitTestCase tester = new OmitTestCase("tester");
tester.test1OmitEchoPhone();
}
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/oneway/OnewayTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/oneway/OnewayTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/oneway/OnewayTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/oneway/OnewayTestCase.java Fri Mar 9 22:24:59 2012
@@ -20,6 +20,9 @@ import junit.framework.TestCase;
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.Stub;
+
+import test.HttpTestUtil;
+
import java.rmi.RemoteException;
/**
@@ -35,10 +38,11 @@ public class OnewayTestCase extends Test
* Sessions shouldn't work with oneway operations, so the call to getAddressFromName
* should return null.
*/
- public void test1NoSessionOnOneway() {
+ public void test1NoSessionOnOneway() throws Exception {
Oneway binding;
try {
- binding = new OnewayServiceLocator().getOneway();
+ OnewayServiceLocator loc = new OnewayServiceLocator();
+ binding = loc.getOneway(HttpTestUtil.getTestEndpoint(loc.getOnewayAddress()));
}
catch (ServiceException jre) {
throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
@@ -61,10 +65,11 @@ public class OnewayTestCase extends Test
* but since this is a oneway operation, that exception should not propagate
* back to the client.
*/
- public void test2NoExceptionOnOneway() {
+ public void test2NoExceptionOnOneway() throws Exception {
Oneway binding;
try {
- binding = new OnewayServiceLocator().getOneway();
+ OnewayServiceLocator loc = new OnewayServiceLocator();
+ binding = loc.getOneway(HttpTestUtil.getTestEndpoint(loc.getOnewayAddress()));
}
catch (ServiceException jre) {
throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/polymorphism/PolymorphismTest_ServiceTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/polymorphism/PolymorphismTest_ServiceTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/polymorphism/PolymorphismTest_ServiceTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/polymorphism/PolymorphismTest_ServiceTestCase.java Fri Mar 9 22:24:59 2012
@@ -7,6 +7,8 @@
package test.wsdl.polymorphism;
+import test.HttpTestUtil;
+
public class PolymorphismTest_ServiceTestCase extends junit.framework.TestCase {
public PolymorphismTest_ServiceTestCase(String name) {
super(name);
@@ -14,15 +16,16 @@ public class PolymorphismTest_ServiceTes
public void testPolymorphismTestWSDL() throws Exception {
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
- java.net.URL url = new java.net.URL(new test.wsdl.polymorphism.PolymorphismTest_ServiceLocator().getPolymorphismTestAddress() + "?WSDL");
+ java.net.URL url = HttpTestUtil.getTestEndpoint(new test.wsdl.polymorphism.PolymorphismTest_ServiceLocator().getPolymorphismTestAddress() + "?WSDL");
javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.polymorphism.PolymorphismTest_ServiceLocator().getServiceName());
assertTrue(service != null);
}
- public void test1PolymorphismTestGetBAsA() {
+ public void test1PolymorphismTestGetBAsA() throws Exception {
test.wsdl.polymorphism.PolymorphismTest_PortType binding;
try {
- binding = new test.wsdl.polymorphism.PolymorphismTest_ServiceLocator().getPolymorphismTest();
+ PolymorphismTest_ServiceLocator loc = new PolymorphismTest_ServiceLocator();
+ binding = loc.getPolymorphismTest(HttpTestUtil.getTestEndpoint(loc.getPolymorphismTestAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
@@ -50,10 +53,11 @@ public class PolymorphismTest_ServiceTes
}
}
- public void test1PolymorphismTestGetCAsA() {
+ public void test1PolymorphismTestGetCAsA() throws Exception {
test.wsdl.polymorphism.PolymorphismTest_PortType binding;
try {
- binding = new test.wsdl.polymorphism.PolymorphismTest_ServiceLocator().getPolymorphismTest();
+ PolymorphismTest_ServiceLocator loc = new PolymorphismTest_ServiceLocator();
+ binding = loc.getPolymorphismTest(HttpTestUtil.getTestEndpoint(loc.getPolymorphismTestAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/primitiveWrappers/TypeWrapper_ServiceTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/primitiveWrappers/TypeWrapper_ServiceTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/primitiveWrappers/TypeWrapper_ServiceTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/primitiveWrappers/TypeWrapper_ServiceTestCase.java Fri Mar 9 22:24:59 2012
@@ -7,6 +7,8 @@
package test.wsdl.primitiveWrappers;
+import test.HttpTestUtil;
+
public class TypeWrapper_ServiceTestCase extends junit.framework.TestCase {
public TypeWrapper_ServiceTestCase(java.lang.String name) {
super(name);
@@ -14,7 +16,7 @@ public class TypeWrapper_ServiceTestCase
public void testTypeWrapperWSDL() throws Exception {
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
- java.net.URL url = new java.net.URL(new test.wsdl.primitiveWrappers.TypeWrapper_ServiceLocator().getTypeWrapperAddress() + "?WSDL");
+ java.net.URL url = HttpTestUtil.getTestEndpoint(new test.wsdl.primitiveWrappers.TypeWrapper_ServiceLocator().getTypeWrapperAddress() + "?WSDL");
javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.primitiveWrappers.TypeWrapper_ServiceLocator().getServiceName());
assertTrue(service != null);
}
@@ -22,8 +24,8 @@ public class TypeWrapper_ServiceTestCase
public void test1TypeWrapperTestWrapping() throws Exception {
test.wsdl.primitiveWrappers.TypeWrapper_BindingStub binding;
try {
- binding = (test.wsdl.primitiveWrappers.TypeWrapper_BindingStub)
- new test.wsdl.primitiveWrappers.TypeWrapper_ServiceLocator().getTypeWrapper();
+ TypeWrapper_ServiceLocator loc = new TypeWrapper_ServiceLocator();
+ binding = (TypeWrapper_BindingStub)loc.getTypeWrapper(HttpTestUtil.getTestEndpoint(loc.getTypeWrapperAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/qualify/Qualify_ServiceTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/qualify/Qualify_ServiceTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/qualify/Qualify_ServiceTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/qualify/Qualify_ServiceTestCase.java Fri Mar 9 22:24:59 2012
@@ -29,6 +29,8 @@ import org.apache.axis.message.SOAPEnvel
import org.w3c.dom.Element;
import org.w3c.dom.Node;
+import test.HttpTestUtil;
+
import javax.xml.rpc.ServiceException;
public class Qualify_ServiceTestCase extends junit.framework.TestCase {
@@ -39,11 +41,11 @@ public class Qualify_ServiceTestCase ext
super(name);
}
- public void test1QualifySimple() {
+ public void test1QualifySimple() throws Exception {
Qualify_ServiceLocator locator = new Qualify_ServiceLocator();
Qualify_BindingStub binding;
try {
- binding = (Qualify_BindingStub)locator.getQualify();
+ binding = (Qualify_BindingStub)locator.getQualify(HttpTestUtil.getTestEndpoint(locator.getQualifyAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
@@ -96,11 +98,11 @@ public class Qualify_ServiceTestCase ext
}
}
- public void test2QualifyFormOverride() {
+ public void test2QualifyFormOverride() throws Exception {
Qualify_ServiceLocator locator = new Qualify_ServiceLocator();
test.wsdl.qualify.Qualify_BindingStub binding;
try {
- binding = (test.wsdl.qualify.Qualify_BindingStub)locator.getQualify();
+ binding = (test.wsdl.qualify.Qualify_BindingStub)locator.getQualify(HttpTestUtil.getTestEndpoint(locator.getQualifyAddress()));
} catch (javax.xml.rpc.ServiceException jre) {
throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/qualify2/AttributeQualify_ServiceTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/qualify2/AttributeQualify_ServiceTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/qualify2/AttributeQualify_ServiceTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/qualify2/AttributeQualify_ServiceTestCase.java Fri Mar 9 22:24:59 2012
@@ -29,6 +29,8 @@ import org.apache.axis.message.SOAPEnvel
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
+import test.HttpTestUtil;
+
import javax.xml.rpc.ServiceException;
public class AttributeQualify_ServiceTestCase extends junit.framework.TestCase {
@@ -39,11 +41,11 @@ public class AttributeQualify_ServiceTes
super(name);
}
- public void test1AttributeQualifyEchoPhone() {
+ public void test1AttributeQualifyEchoPhone() throws Exception {
test.wsdl.qualify2.AttributeQualify_BindingStub binding;
test.wsdl.qualify2.AttributeQualify_ServiceLocator locator = new test.wsdl.qualify2.AttributeQualify_ServiceLocator();
try {
- binding = (test.wsdl.qualify2.AttributeQualify_BindingStub)locator.getAttributeQualify();
+ binding = (test.wsdl.qualify2.AttributeQualify_BindingStub)locator.getAttributeQualify(HttpTestUtil.getTestEndpoint(locator.getAttributeQualifyAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/ram/RamServiceTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/ram/RamServiceTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/ram/RamServiceTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/ram/RamServiceTestCase.java Fri Mar 9 22:24:59 2012
@@ -7,6 +7,8 @@
package test.wsdl.ram;
+import test.HttpTestUtil;
+
public class RamServiceTestCase extends junit.framework.TestCase {
public RamServiceTestCase(String name) {
super(name);
@@ -14,15 +16,16 @@ public class RamServiceTestCase extends
public void testRamWSDL() throws Exception {
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
- java.net.URL url = new java.net.URL(new test.wsdl.ram.RamServiceLocator().getRamAddress() + "?WSDL");
+ java.net.URL url = HttpTestUtil.getTestEndpoint(new test.wsdl.ram.RamServiceLocator().getRamAddress() + "?WSDL");
javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.ram.RamServiceLocator().getServiceName());
assertTrue(service != null);
}
- public void test1RamValidate() {
+ public void test1RamValidate() throws Exception {
Ram binding;
try {
- binding = new RamServiceLocator().getRam();
+ RamServiceLocator loc = new RamServiceLocator();
+ binding = loc.getRam(HttpTestUtil.getTestEndpoint(loc.getRamAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
@@ -66,7 +69,7 @@ public class RamServiceTestCase extends
}
}
- public static void main(String[] args){
+ public static void main(String[] args) throws Exception {
RamServiceTestCase test = new RamServiceTestCase("RamServiceTestCase");
test.test1RamValidate();
}
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/stubheaders/StubHeaderServiceTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/stubheaders/StubHeaderServiceTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/stubheaders/StubHeaderServiceTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/stubheaders/StubHeaderServiceTestCase.java Fri Mar 9 22:24:59 2012
@@ -9,6 +9,8 @@ package test.wsdl.stubheaders;
import org.apache.axis.message.SOAPHeaderElement;
+import test.HttpTestUtil;
+
public class StubHeaderServiceTestCase extends junit.framework.TestCase {
public StubHeaderServiceTestCase(java.lang.String name) {
super(name);
@@ -16,7 +18,7 @@ public class StubHeaderServiceTestCase e
public void testStubHeaderServiceWSDL() throws Exception {
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
- java.net.URL url = new java.net.URL(new test.wsdl.stubheaders.StubHeaderServiceLocator().getStubHeaderServiceAddress() + "?WSDL");
+ java.net.URL url = HttpTestUtil.getTestEndpoint(new test.wsdl.stubheaders.StubHeaderServiceLocator().getStubHeaderServiceAddress() + "?WSDL");
javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.stubheaders.StubHeaderServiceLocator().getServiceName());
assertTrue(service != null);
}
@@ -24,8 +26,8 @@ public class StubHeaderServiceTestCase e
public void test1StubHeaderServiceEcho() throws Exception {
StubHeaderStub binding;
try {
- binding = (test.wsdl.stubheaders.StubHeaderStub)
- new StubHeaderServiceLocator().getStubHeaderService();
+ StubHeaderServiceLocator loc = new StubHeaderServiceLocator();
+ binding = (StubHeaderStub)loc.getStubHeaderService(HttpTestUtil.getTestEndpoint(loc.getStubHeaderServiceAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/wrapped/City_BBBTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/wrapped/City_BBBTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/wrapped/City_BBBTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/wrapped/City_BBBTestCase.java Fri Mar 9 22:24:59 2012
@@ -7,6 +7,8 @@
package test.wsdl.wrapped;
+import test.HttpTestUtil;
+
public class City_BBBTestCase extends junit.framework.TestCase {
public City_BBBTestCase(String name) {
super(name);
@@ -14,14 +16,15 @@ public class City_BBBTestCase extends ju
public void testCity_BBBPortWSDL() throws Exception {
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
- java.net.URL url = new java.net.URL(new test.wsdl.wrapped.City_BBBLocator().getCity_BBBPortAddress() + "?WSDL");
+ java.net.URL url = HttpTestUtil.getTestEndpoint(new test.wsdl.wrapped.City_BBBLocator().getCity_BBBPortAddress() + "?WSDL");
javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.wrapped.City_BBBLocator().getServiceName());
assertTrue(service != null);
}
public void test1CityBBBPortGetAttraction() throws Exception {
City_BBBPortType binding;
- binding = new City_BBBLocator().getCity_BBBPort();
+ City_BBBLocator loc = new City_BBBLocator();
+ binding = loc.getCity_BBBPort(HttpTestUtil.getTestEndpoint(loc.getCity_BBBPortAddress()));
assertTrue("binding is null", binding != null);
@@ -33,7 +36,8 @@ public class City_BBBTestCase extends ju
public void test2CityBBBPortGetAttractions() throws Exception {
City_BBBPortType binding;
try {
- binding = new City_BBBLocator().getCity_BBBPort();
+ City_BBBLocator loc = new City_BBBLocator();
+ binding = loc.getCity_BBBPort(HttpTestUtil.getTestEndpoint(loc.getCity_BBBPortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
@@ -52,7 +56,8 @@ public class City_BBBTestCase extends ju
public void test3CityBBBPortGetAttractions() throws Exception {
City_BBBPortType binding;
try {
- binding = new City_BBBLocator().getCity_BBBPort();
+ City_BBBLocator loc = new City_BBBLocator();
+ binding = loc.getCity_BBBPort(HttpTestUtil.getTestEndpoint(loc.getCity_BBBPortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
@@ -69,7 +74,8 @@ public class City_BBBTestCase extends ju
public void test4CityBBBPortGetAttractions() throws Exception {
City_BBBPortType binding;
try {
- binding = new City_BBBLocator().getCity_BBBPort();
+ City_BBBLocator loc = new City_BBBLocator();
+ binding = loc.getCity_BBBPort(HttpTestUtil.getTestEndpoint(loc.getCity_BBBPortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
@@ -88,7 +94,8 @@ public class City_BBBTestCase extends ju
public void test5CityBBBPortGetAttractions() throws Exception {
City_BBBPortType binding;
try {
- binding = new City_BBBLocator().getCity_BBBPort();
+ City_BBBLocator loc = new City_BBBLocator();
+ binding = loc.getCity_BBBPort(HttpTestUtil.getTestEndpoint(loc.getCity_BBBPortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
@@ -107,7 +114,8 @@ public class City_BBBTestCase extends ju
public void test6CityBBBPortGetAttractions() throws Exception {
City_BBBPortType binding;
try {
- binding = new City_BBBLocator().getCity_BBBPort();
+ City_BBBLocator loc = new City_BBBLocator();
+ binding = loc.getCity_BBBPort(HttpTestUtil.getTestEndpoint(loc.getCity_BBBPortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
@@ -131,7 +139,8 @@ public class City_BBBTestCase extends ju
public void test7CityBBBPortGetAttractions() throws Exception {
City_BBBPortType binding;
try {
- binding = new City_BBBLocator().getCity_BBBPort();
+ City_BBBLocator loc = new City_BBBLocator();
+ binding = loc.getCity_BBBPort(HttpTestUtil.getTestEndpoint(loc.getCity_BBBPortAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
Modified: axis/axis1/java/trunk/integration/src/test/java/test/wsdl/wrapped2/EmployeeDatabaseTestCase.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/integration/src/test/java/test/wsdl/wrapped2/EmployeeDatabaseTestCase.java?rev=1299078&r1=1299077&r2=1299078&view=diff
==============================================================================
--- axis/axis1/java/trunk/integration/src/test/java/test/wsdl/wrapped2/EmployeeDatabaseTestCase.java (original)
+++ axis/axis1/java/trunk/integration/src/test/java/test/wsdl/wrapped2/EmployeeDatabaseTestCase.java Fri Mar 9 22:24:59 2012
@@ -7,6 +7,8 @@
package test.wsdl.wrapped2;
+import test.HttpTestUtil;
+
public class EmployeeDatabaseTestCase extends junit.framework.TestCase {
public EmployeeDatabaseTestCase(java.lang.String name) {
super(name);
@@ -14,7 +16,7 @@ public class EmployeeDatabaseTestCase ex
public void testEmployeeDatabaseWSDL() throws Exception {
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
- java.net.URL url = new java.net.URL(new test.wsdl.wrapped2.EmployeeDatabaseLocator().getEmployeeDatabaseAddress() + "?WSDL");
+ java.net.URL url = HttpTestUtil.getTestEndpoint(new test.wsdl.wrapped2.EmployeeDatabaseLocator().getEmployeeDatabaseAddress() + "?WSDL");
javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.wrapped2.EmployeeDatabaseLocator().getServiceName());
assertTrue(service != null);
}
@@ -22,8 +24,8 @@ public class EmployeeDatabaseTestCase ex
public void test1EmployeeDatabaseGetEmployeeCount() throws Exception {
test.wsdl.wrapped2.EmployeeDBBindingStub binding;
try {
- binding = (test.wsdl.wrapped2.EmployeeDBBindingStub)
- new test.wsdl.wrapped2.EmployeeDatabaseLocator().getEmployeeDatabase();
+ EmployeeDatabaseLocator loc = new EmployeeDatabaseLocator();
+ binding = (EmployeeDBBindingStub)loc.getEmployeeDatabase(HttpTestUtil.getTestEndpoint(loc.getEmployeeDatabaseAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -44,8 +46,8 @@ public class EmployeeDatabaseTestCase ex
public void test2EmployeeDatabaseAddGroups() throws Exception {
test.wsdl.wrapped2.EmployeeDBBindingStub binding;
try {
- binding = (test.wsdl.wrapped2.EmployeeDBBindingStub)
- new test.wsdl.wrapped2.EmployeeDatabaseLocator().getEmployeeDatabase();
+ EmployeeDatabaseLocator loc = new EmployeeDatabaseLocator();
+ binding = (EmployeeDBBindingStub)loc.getEmployeeDatabase(HttpTestUtil.getTestEndpoint(loc.getEmployeeDatabaseAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -66,8 +68,8 @@ public class EmployeeDatabaseTestCase ex
public void test3EmployeeDatabaseIsManager() throws Exception {
test.wsdl.wrapped2.EmployeeDBBindingStub binding;
try {
- binding = (test.wsdl.wrapped2.EmployeeDBBindingStub)
- new test.wsdl.wrapped2.EmployeeDatabaseLocator().getEmployeeDatabase();
+ EmployeeDatabaseLocator loc = new EmployeeDatabaseLocator();
+ binding = (EmployeeDBBindingStub)loc.getEmployeeDatabase(HttpTestUtil.getTestEndpoint(loc.getEmployeeDatabaseAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -88,8 +90,8 @@ public class EmployeeDatabaseTestCase ex
public void test4EmployeeDatabasePromoteEmployee() throws Exception {
test.wsdl.wrapped2.EmployeeDBBindingStub binding;
try {
- binding = (test.wsdl.wrapped2.EmployeeDBBindingStub)
- new test.wsdl.wrapped2.EmployeeDatabaseLocator().getEmployeeDatabase();
+ EmployeeDatabaseLocator loc = new EmployeeDatabaseLocator();
+ binding = (EmployeeDBBindingStub)loc.getEmployeeDatabase(HttpTestUtil.getTestEndpoint(loc.getEmployeeDatabaseAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -110,8 +112,8 @@ public class EmployeeDatabaseTestCase ex
public void test5EmployeeDatabaseGetEmployees() throws Exception {
test.wsdl.wrapped2.EmployeeDBBindingStub binding;
try {
- binding = (test.wsdl.wrapped2.EmployeeDBBindingStub)
- new test.wsdl.wrapped2.EmployeeDatabaseLocator().getEmployeeDatabase();
+ EmployeeDatabaseLocator loc = new EmployeeDatabaseLocator();
+ binding = (EmployeeDBBindingStub)loc.getEmployeeDatabase(HttpTestUtil.getTestEndpoint(loc.getEmployeeDatabaseAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
@@ -132,8 +134,8 @@ public class EmployeeDatabaseTestCase ex
public void test6EmployeeDatabaseScheduleMtg() throws Exception {
test.wsdl.wrapped2.EmployeeDBBindingStub binding;
try {
- binding = (test.wsdl.wrapped2.EmployeeDBBindingStub)
- new test.wsdl.wrapped2.EmployeeDatabaseLocator().getEmployeeDatabase();
+ EmployeeDatabaseLocator loc = new EmployeeDatabaseLocator();
+ binding = (EmployeeDBBindingStub)loc.getEmployeeDatabase(HttpTestUtil.getTestEndpoint(loc.getEmployeeDatabaseAddress()));
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)