tomj 2002/10/07 13:13:12 Modified: java/test/wsdl/interop4/groupH/simpleRPCenc Tag: interop4 SimpleRpcEncServiceTestCase.java java/test/wsdl/interop4/groupH/simpleDocLit Tag: interop4 SimpleDocLitServiceTestCase.java build.xml java/test/wsdl/interop4/groupH/complexDocLit Tag: interop4 ComplexDocLitServiceTestCase.java build.xml java/test/wsdl/interop4/groupH/complexRPCenc Tag: interop4 ComplexRpcEncServiceTestCase.java build.xml java/test/wsdl/interop4/groupi Tag: interop4 Round4XSDTestTestCase.java Added: java/test/wsdl/interop4/groupH/simpleRPCenc Tag: interop4 run.sh java/test/wsdl/interop4/groupH/simpleDocLit Tag: interop4 run.sh java/test/wsdl/interop4/groupH/complexDocLit Tag: interop4 run.sh java/test/wsdl/interop4/groupH/complexRPCenc Tag: interop4 run.sh java/test/wsdl/interop4/groupi Tag: interop4 run.sh Log: Make the tests easier to run at the interop. Add run scripts to save my typing fingers. Revision Changes Path No revision No revision 1.1.2.2 +26 -8 xml-axis/java/test/wsdl/interop4/groupH/simpleRPCenc/Attic/SimpleRpcEncServiceTestCase.java Index: SimpleRpcEncServiceTestCase.java =================================================================== RCS file: /home/cvs/xml-axis/java/test/wsdl/interop4/groupH/simpleRPCenc/Attic/SimpleRpcEncServiceTestCase.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- SimpleRpcEncServiceTestCase.java 2 Oct 2002 16:29:09 -0000 1.1.2.1 +++ SimpleRpcEncServiceTestCase.java 7 Oct 2002 20:13:10 -0000 1.1.2.2 @@ -9,16 +9,34 @@ package test.wsdl.interop4.groupH.simpleRPCenc; +import java.net.URL; + public class SimpleRpcEncServiceTestCase extends junit.framework.TestCase { - public SimpleRpcEncServiceTestCase(java.lang.String name) { + + public static URL url = null; + + public static void main(String[] args) throws Exception { + if (args.length == 1) { + url = new URL(args[0]); + } else { + url = new URL(new SimpleRpcEncServiceLocator().getSimpleRpcEncPortAddress()); + } + junit.textui.TestRunner.run(new junit.framework.TestSuite(SimpleRpcEncServiceTestCase.class)); + } // main + + + public SimpleRpcEncServiceTestCase(java.lang.String name) throws Exception { super(name); + if (url == null) { + url = new URL(new SimpleRpcEncServiceLocator().getSimpleRpcEncPortAddress()); + } } public void test1SimpleRpcEncPortEchoEmptyFault() throws Exception { SimpleRpcEncPortType binding; try { - binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(); + binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -43,7 +61,7 @@ public void test2SimpleRpcEncPortEchoStringFault() throws Exception { SimpleRpcEncPortType binding; try { - binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(); + binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -66,7 +84,7 @@ public void test3SimpleRpcEncPortEchoIntArrayFault() throws Exception { SimpleRpcEncPortType binding; try { - binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(); + binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -94,7 +112,7 @@ public void test4SimpleRpcEncPortEchoMultipleFaults1() throws Exception { SimpleRpcEncPortType binding; try { - binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(); + binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -135,7 +153,7 @@ public void test5SimpleRpcEncPortEchoMultipleFaults2() throws Exception { SimpleRpcEncPortType binding; try { - binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(); + binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -178,7 +196,7 @@ public void test6SimpleRpcEncPortEchoMultipleFaults3() throws Exception { SimpleRpcEncPortType binding; try { - binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(); + binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -212,7 +230,7 @@ public void test7SimpleRpcEncPortEchoMultipleFaults4() throws Exception { SimpleRpcEncPortType binding; try { - binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(); + binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) No revision No revision 1.1.2.1 +8 -0 xml-axis/java/test/wsdl/interop4/groupH/simpleRPCenc/Attic/run.sh No revision No revision 1.1.2.2 +19 -1 xml-axis/java/test/wsdl/interop4/groupH/simpleDocLit/Attic/SimpleDocLitServiceTestCase.java Index: SimpleDocLitServiceTestCase.java =================================================================== RCS file: /home/cvs/xml-axis/java/test/wsdl/interop4/groupH/simpleDocLit/Attic/SimpleDocLitServiceTestCase.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- SimpleDocLitServiceTestCase.java 7 Oct 2002 03:42:28 -0000 1.1.2.1 +++ SimpleDocLitServiceTestCase.java 7 Oct 2002 20:13:11 -0000 1.1.2.2 @@ -7,10 +7,28 @@ package test.wsdl.interop4.groupH.simpleDocLit; +import java.net.URL; + public class SimpleDocLitServiceTestCase extends junit.framework.TestCase { - public SimpleDocLitServiceTestCase(java.lang.String name) { + + public static URL url = null; + + public static void main(String[] args) throws Exception { + if (args.length == 1) { + url = new URL(args[0]); + } else { + url = new URL(new SimpleDocLitServiceLocator().getSimpleDocLitPortAddress()); + } + junit.textui.TestRunner.run(new junit.framework.TestSuite(SimpleDocLitServiceTestCase.class)); + } // main + + public SimpleDocLitServiceTestCase(java.lang.String name) throws Exception { super(name); + if (url == null) { + url = new URL(new SimpleDocLitServiceLocator().getSimpleDocLitPortAddress()); + } } + public void test1SimpleDocLitPortEchoEmptyFault() throws Exception { SimpleDocLitPortType binding; try { 1.1.2.5 +1 -1 xml-axis/java/test/wsdl/interop4/groupH/simpleDocLit/Attic/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/xml-axis/java/test/wsdl/interop4/groupH/simpleDocLit/Attic/build.xml,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -r1.1.2.4 -r1.1.2.5 --- build.xml 7 Oct 2002 03:49:39 -0000 1.1.2.4 +++ build.xml 7 Oct 2002 20:13:11 -0000 1.1.2.5 @@ -65,7 +65,7 @@ <copy file="SimpleDocLitBindingImpl.java" overwrite="true" todir="${root.dir}/build/work/test/wsdl/interop4/groupH/${testname}"/> - <copy file="SimpleDocLitServiceTestCase.java" + <copy file="SimpleDocLitServiceTestCase.java" overwrite="true" todir="${root.dir}/build/work/test/wsdl/interop4/groupH/${testname}"/> <!-- compile the code --> No revision No revision 1.1.2.1 +8 -0 xml-axis/java/test/wsdl/interop4/groupH/simpleDocLit/Attic/run.sh No revision No revision 1.1.2.3 +19 -1 xml-axis/java/test/wsdl/interop4/groupH/complexDocLit/Attic/ComplexDocLitServiceTestCase.java Index: ComplexDocLitServiceTestCase.java =================================================================== RCS file: /home/cvs/xml-axis/java/test/wsdl/interop4/groupH/complexDocLit/Attic/ComplexDocLitServiceTestCase.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- ComplexDocLitServiceTestCase.java 7 Oct 2002 04:12:23 -0000 1.1.2.2 +++ ComplexDocLitServiceTestCase.java 7 Oct 2002 20:13:11 -0000 1.1.2.3 @@ -7,9 +7,27 @@ package test.wsdl.interop4.groupH.complexDocLit; +import java.net.URL; + public class ComplexDocLitServiceTestCase extends junit.framework.TestCase { - public ComplexDocLitServiceTestCase(java.lang.String name) { + + public static URL url = null; + + public static void main(String[] args) throws Exception { + if (args.length == 1) { + url = new URL(args[0]); + } else { + url = new URL(new ComplexDocLitServiceLocator().getComplexDocLitPortAddress()); + } + junit.textui.TestRunner.run(new junit.framework.TestSuite(ComplexDocLitServiceTestCase.class)); + } // main + + + public ComplexDocLitServiceTestCase(java.lang.String name) throws Exception { super(name); + if (url == null) { + url = new URL(new ComplexDocLitServiceLocator().getComplexDocLitPortAddress()); + } } public void test1ComplexDocLitPortEchoSOAPStructFault() throws Exception { ComplexDocLitPortType binding; 1.1.2.2 +1 -1 xml-axis/java/test/wsdl/interop4/groupH/complexDocLit/Attic/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/xml-axis/java/test/wsdl/interop4/groupH/complexDocLit/Attic/build.xml,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- build.xml 7 Oct 2002 03:49:38 -0000 1.1.2.1 +++ build.xml 7 Oct 2002 20:13:11 -0000 1.1.2.2 @@ -65,7 +65,7 @@ <copy file="ComplexDocLitBindingImpl.java" overwrite="true" todir="${root.dir}/build/work/test/wsdl/interop4/groupH/${testname}"/> - <copy file="ComplexDocLitServiceTestCase.java" + <copy file="ComplexDocLitServiceTestCase.java" overwrite="true" todir="${root.dir}/build/work/test/wsdl/interop4/groupH/${testname}"/> <!-- compile the code --> No revision No revision 1.1.2.1 +8 -0 xml-axis/java/test/wsdl/interop4/groupH/complexDocLit/Attic/run.sh No revision No revision 1.1.2.3 +19 -1 xml-axis/java/test/wsdl/interop4/groupH/complexRPCenc/Attic/ComplexRpcEncServiceTestCase.java Index: ComplexRpcEncServiceTestCase.java =================================================================== RCS file: /home/cvs/xml-axis/java/test/wsdl/interop4/groupH/complexRPCenc/Attic/ComplexRpcEncServiceTestCase.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- ComplexRpcEncServiceTestCase.java 7 Oct 2002 04:12:23 -0000 1.1.2.2 +++ ComplexRpcEncServiceTestCase.java 7 Oct 2002 20:13:11 -0000 1.1.2.3 @@ -7,9 +7,27 @@ package test.wsdl.interop4.groupH.complexRPCenc; +import java.net.URL; + public class ComplexRpcEncServiceTestCase extends junit.framework.TestCase { - public ComplexRpcEncServiceTestCase(java.lang.String name) { + + public static URL url = null; + + public static void main(String[] args) throws Exception { + if (args.length == 1) { + url = new URL(args[0]); + } else { + url = new URL(new ComplexRpcEncServiceLocator().getComplexRpcEncPortAddress()); + } + junit.textui.TestRunner.run(new junit.framework.TestSuite(ComplexRpcEncServiceTestCase.class)); + } // main + + + public ComplexRpcEncServiceTestCase(java.lang.String name) throws Exception { super(name); + if (url == null) { + url = new URL(new ComplexRpcEncServiceLocator().getComplexRpcEncPortAddress()); + } } public void test1ComplexRpcEncPortEchoSOAPStructFault() throws Exception { test.wsdl.interop4.groupH.complexRPCenc.ComplexRpcEncPortType binding; 1.1.2.2 +1 -1 xml-axis/java/test/wsdl/interop4/groupH/complexRPCenc/Attic/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/xml-axis/java/test/wsdl/interop4/groupH/complexRPCenc/Attic/build.xml,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- build.xml 5 Oct 2002 06:06:03 -0000 1.1.2.1 +++ build.xml 7 Oct 2002 20:13:11 -0000 1.1.2.2 @@ -63,7 +63,7 @@ <copy file="ComplexRpcEncBindingImpl.java" overwrite="true" todir="${root.dir}/build/work/test/wsdl/interop4/groupH/${testname}"/> - <copy file="ComplexRpcEncServiceTestCase.java" + <copy file="ComplexRpcEncServiceTestCase.java" overwrite="true" todir="${root.dir}/build/work/test/wsdl/interop4/groupH/${testname}"/> <!-- compile the code --> No revision No revision 1.1.2.1 +8 -0 xml-axis/java/test/wsdl/interop4/groupH/complexRPCenc/Attic/run.sh No revision No revision 1.1.2.7 +63 -46 xml-axis/java/test/wsdl/interop4/groupi/Attic/Round4XSDTestTestCase.java Index: Round4XSDTestTestCase.java =================================================================== RCS file: /home/cvs/xml-axis/java/test/wsdl/interop4/groupi/Attic/Round4XSDTestTestCase.java,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -r1.1.2.6 -r1.1.2.7 --- Round4XSDTestTestCase.java 3 Oct 2002 00:52:41 -0000 1.1.2.6 +++ Round4XSDTestTestCase.java 7 Oct 2002 20:13:12 -0000 1.1.2.7 @@ -10,15 +10,32 @@ import java.util.Arrays; import java.util.TimeZone; import java.util.Calendar; +import java.net.URL; public class Round4XSDTestTestCase extends junit.framework.TestCase { - public Round4XSDTestTestCase(java.lang.String name) { + + public static URL url = null; + + public static void main(String[] args) throws Exception { + if (args.length == 1) { + url = new URL(args[0]); + } else { + url = new URL(new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoapAddress()); + } + junit.textui.TestRunner.run(new junit.framework.TestSuite(Round4XSDTestTestCase.class)); + } // main + + + public Round4XSDTestTestCase(java.lang.String name) throws Exception { super(name); + if (url == null) { + url = new URL(new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoapAddress()); + } } public void test1Round4XSDTestSoapEchoVoid() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -38,7 +55,7 @@ public void test2Round4XSDTestSoapEchoInteger() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -59,7 +76,7 @@ public void test3Round4XSDTestSoapEchoFloat() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -70,7 +87,7 @@ try { float value = binding.echoFloat(1500); - assertTrue(value == 1500); + assertEquals(1500, value, 0.001F); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -80,7 +97,7 @@ public void test4Round4XSDTestSoapEchoString() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -92,7 +109,7 @@ try { java.lang.String value = null; value = binding.echoString(new java.lang.String("Hello World")); - assertEquals(value,"Hello World"); + assertEquals("Hello World", value); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -102,7 +119,7 @@ public void test5Round4XSDTestSoapEchoBase64() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -115,7 +132,7 @@ byte[] input = new byte[] {0xC, 0xA, 0xF, 0xE, 0xB, 0xA, 0xB, 0xE}; byte[] value = null; value = binding.echoBase64(input); - assertTrue(Arrays.equals(input, value)); + assertTrue("Array values do not match", Arrays.equals(input, value)); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -125,7 +142,7 @@ public void test6Round4XSDTestSoapEchoDate() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -140,7 +157,7 @@ java.util.Calendar value = null; value = binding.echoDate(input); value.setTimeZone(TimeZone.getTimeZone("GMT")); - assertTrue(input.equals(value)); + assertEquals(input, value); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -150,7 +167,7 @@ public void test7Round4XSDTestSoapEchoComplexType() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -165,7 +182,7 @@ input.setVarInt(2048); input.setVarString("Hello World"); test.wsdl.interop4.groupi.xsd.SOAPComplexType value = binding.echoComplexType(input); - assertTrue(input.equals(value)); + assertEquals(input, value); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -175,7 +192,7 @@ public void test8Round4XSDTestSoapEchoIntegerMultiOccurs() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -193,7 +210,7 @@ input.set_int(input2); int[] value = null; value = binding.echoIntegerMultiOccurs(input); - assertTrue(Arrays.equals(input2, value)); + assertTrue("Array values don't match", Arrays.equals(input2, value)); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -203,7 +220,7 @@ public void test9Round4XSDTestSoapEchoFloatMultiOccurs() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -221,7 +238,7 @@ input.set_float(input2); float[] value = null; value = binding.echoFloatMultiOccurs(input); - assertTrue(Arrays.equals(input2, value)); + assertTrue("Array values don't match", Arrays.equals(input2, value)); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -231,7 +248,7 @@ public void test10Round4XSDTestSoapEchoStringMultiOccurs() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -249,7 +266,7 @@ input.setString(input2); java.lang.String[] value = null; value = binding.echoStringMultiOccurs(input); - assertTrue(Arrays.equals(input2, value)); + assertTrue("Array values don't match", Arrays.equals(input2, value)); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -259,7 +276,7 @@ public void test11Round4XSDTestSoapEchoComplexTypeMultiOccurs() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -278,7 +295,7 @@ input.setSOAPComplexType(0,input2); test.wsdl.interop4.groupi.xsd.SOAPComplexType[] value = null; value = binding.echoComplexTypeMultiOccurs(input); - assertTrue(Arrays.equals(input.getSOAPComplexType(), value)); + assertTrue("Array values don't match", Arrays.equals(input.getSOAPComplexType(), value)); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -288,7 +305,7 @@ public void test12Round4XSDTestSoapEchoDecimal() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -301,7 +318,7 @@ java.math.BigDecimal input = new java.math.BigDecimal(512); java.math.BigDecimal value = null; value = binding.echoDecimal(input); - assertTrue(value.equals(input)); + assertEquals(input, value); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -311,7 +328,7 @@ public void test13Round4XSDTestSoapEchoBoolean() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -323,7 +340,7 @@ try { boolean value = false; value = binding.echoBoolean(true); - assertTrue(value == true); + assertTrue("boolean value is not TRUE", value == true); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -333,7 +350,7 @@ public void test14Round4XSDTestSoapEchoHexBinary() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -346,7 +363,7 @@ byte[] input = new byte[] {0xC, 0xA, 0xF, 0xE, 0xB, 0xA, 0xB, 0xE}; byte[] value = null; value = binding.echoHexBinary(input); - assertTrue(Arrays.equals(input, value)); + assertTrue("Array values don't match", Arrays.equals(input, value)); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -356,7 +373,7 @@ public void test15Round4XSDTestSoapEchoComplexTypeAsSimpleTypes() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -374,9 +391,9 @@ javax.xml.rpc.holders.IntHolder value2 = new javax.xml.rpc.holders.IntHolder(); javax.xml.rpc.holders.FloatHolder value3 = new javax.xml.rpc.holders.FloatHolder(); binding.echoComplexTypeAsSimpleTypes(input, value1, value2, value3); - assertTrue(input.getVarString().equals(value1.value)); - assertTrue(input.getVarInt() == value2.value); - assertTrue(input.getVarFloat() == value3.value); + assertEquals(input.getVarString(), value1.value); + assertEquals(input.getVarInt(), value2.value); + assertEquals(input.getVarFloat(), value3.value, 0.01F); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -386,7 +403,7 @@ public void test16Round4XSDTestSoapEchoSimpleTypesAsComplexType() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -398,9 +415,9 @@ try { test.wsdl.interop4.groupi.xsd.SOAPComplexType value = null; value = binding.echoSimpleTypesAsComplexType(new java.lang.String("Hello World"), 1024, 2048); - assertTrue(value.getVarString().equals("Hello World")); - assertTrue(value.getVarInt() == 1024); - assertTrue(value.getVarFloat() == 2048); + assertEquals(value.getVarString(), "Hello World"); + assertEquals(value.getVarInt(), 1024); + assertEquals(value.getVarFloat(), 2048, 0.01F); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -410,7 +427,7 @@ public void test17Round4XSDTestSoapEchoNestedComplexType() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -431,7 +448,7 @@ input.setVarComplexType(input2); test.wsdl.interop4.groupi.xsd.SOAPComplexTypeComplexType value = null; value = binding.echoNestedComplexType(input); - assertTrue(input.equals(value)); + assertEquals(input, value); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -441,7 +458,7 @@ public void test18Round4XSDTestSoapEchoNestedMultiOccurs() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -460,7 +477,7 @@ input.setVarMultiOccurs(varMultiOccurs); test.wsdl.interop4.groupi.xsd.SOAPMultiOccursComplexType value = null; value = binding.echoNestedMultiOccurs(input); - assertTrue(input.equals(value)); + assertEquals(input, value); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -470,7 +487,7 @@ public void test19Round4XSDTestSoapEchoChoice() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -486,7 +503,7 @@ //input.setName1("World"); test.wsdl.interop4.groupi.xsd.ChoiceComplexType value = null; value = binding.echoChoice(input); - assertTrue(input.equals(value)); + assertEquals(input, value); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -496,7 +513,7 @@ public void test20Round4XSDTestSoapEchoEnum() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -509,7 +526,7 @@ test.wsdl.interop4.groupi.xsd.Enum input = test.wsdl.interop4.groupi.xsd.Enum.BitOne; test.wsdl.interop4.groupi.xsd.Enum value = null; value = binding.echoEnum(input); - assertTrue(input.equals(value)); + assertEquals(input, value); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); @@ -519,7 +536,7 @@ public void test21Round4XSDTestSoapRetAnyType() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -542,7 +559,7 @@ public void test22Round4XSDTestSoapRetAny() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) @@ -568,7 +585,7 @@ public void test23Round4XSDTestSoapEchoVoidSoapHeader() { test.wsdl.interop4.groupi.Round4XSDTestSoap binding; try { - binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(); + binding = new test.wsdl.interop4.groupi.Round4XSDTestLocator().getRound4XSDTestSoap(url); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) No revision No revision 1.1.2.1 +8 -0 xml-axis/java/test/wsdl/interop4/groupi/Attic/run.sh