axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r289289 [52/134] - in /webservices/axis2/trunk/java: ./ etc/ modules/addressing/ modules/addressing/src/META-INF/ modules/addressing/src/org/apache/axis2/handlers/addressing/ modules/addressing/test-resources/ modules/addressing/test/org/ap...
Date Thu, 15 Sep 2005 19:07:03 GMT
Modified: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java (original)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java Thu Sep 15 11:52:11 2005
@@ -1,121 +1,121 @@
-
-package org.apache.axis2.interopt.sun.simple;
-
-import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMXMLParserWrapper;
-import org.apache.axis2.om.impl.llom.exception.XMLComparisonException;
-import org.apache.axis2.om.impl.llom.util.XMLComparator;
-import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
-import org.apache.axis2.soap.SOAPEnvelope;
-import org.apache.axis2.interopt.sun.round4.simple.EchoBlockingClient;
-import org.apache.axis2.interopt.sun.round4.simple.util.*;
-
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLInputFactory;
-import java.io.InputStream;
-
-import junit.framework.TestCase;
-
-/**
- * Created by IntelliJ IDEA.
- * User: Nadana
- * Date: Aug 6, 2005
- * Time: 2:39:44 PM
- * To change this template use File | Settings | File Templates.
- */
-public class SunGroupHMain extends TestCase{
-
-    EchoBlockingClient client=null;
-    OMElement retEle;
-    SunGroupHClientUtil util=null;
-    String soapAction="";
-
-    public void setUp(){
-        client=new EchoBlockingClient();
-
-    }
-
-    private boolean Compare(OMElement retEle,String filepath) throws XMLStreamException,
-            XMLComparisonException{
-        boolean compare=false;
-        if(retEle!=null){
-             InputStream stream = Thread.currentThread()
-                     .getContextClassLoader().getResourceAsStream("/" + filepath);
-            javax.xml.stream.XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
-            OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
-            SOAPEnvelope resEnv = (SOAPEnvelope) builder.getDocumentElement();
-            OMElement resElementtobe = resEnv.getBody().getFirstElement();
-            XMLComparator comparator = new XMLComparator();
-            compare = comparator.compare(retEle,resElementtobe);
-        }
-        return compare;
-    }
-
-
-
-
-
-    public void testEchoEmptyFault()  throws Exception{
-        util=new EchoEmptyFaultClientUtil();
-        retEle =client.sendMsg(util,soapAction);
-        assertTrue(Compare(retEle,"/interopt/sun/round4/simple/resEmptyfault.xml"));
-
-
-    }
-
-
-    //todo fix me Nadana , this fails due to bug in XML Comparator
-    //echoBaseSoapStructFault
-//    public void testIntArrayFault()throws Exception{
-//        util=new EchoIntArrayFaultClientUtil();
-//        retEle = client.sendMsg(util,soapAction);
-//        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resIntArrayFault.xml"));
-//    }
-
-
-
-
-    //echoExtendedStructFault
-    public void testStringFault()throws Exception{
-        util=new EchoStringFaultClientUtil();
-        retEle = client.sendMsg(util,soapAction);
-        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resStringFault.xml"));
-
-
-
-    }
-
-
-    //echomultiplefaults1
-    public void testMultiplefaults1()throws Exception{
-        util=new EchoMultipleFaults1ClientUtil();
-        retEle = client.sendMsg(util,soapAction);
-        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults1.xml"));
-    }
-
-    //echomultiplefaults2
-    public void testMultiplefaults2()throws Exception{
-        util=new EchoMultipleFaults2ClientUtil();
-        retEle = client.sendMsg(util,soapAction);
-        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults2.xml"));
-
-
-    }
-
-    //echomultiplefaults3
-    public void testMultiplefaults3()throws Exception{
-        util=new EchoMultipleFaults3Clientutil();
-        retEle = client.sendMsg(util,soapAction);
-        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults3.xml"));
-
-
-    }
-    //echomultiplefaults4
-    public void testMultiplefaults4()throws Exception{
-        util=new EchoMultipleFaults4ClientUtil();
-        retEle = client.sendMsg(util,soapAction);
-        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults4.xml"));
-
-    }
-
+
+package org.apache.axis2.interopt.sun.simple;
+
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMXMLParserWrapper;
+import org.apache.axis2.om.impl.llom.exception.XMLComparisonException;
+import org.apache.axis2.om.impl.llom.util.XMLComparator;
+import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.interopt.sun.round4.simple.EchoBlockingClient;
+import org.apache.axis2.interopt.sun.round4.simple.util.*;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLInputFactory;
+import java.io.InputStream;
+
+import junit.framework.TestCase;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: Nadana
+ * Date: Aug 6, 2005
+ * Time: 2:39:44 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class SunGroupHMain extends TestCase{
+
+    EchoBlockingClient client=null;
+    OMElement retEle;
+    SunGroupHClientUtil util=null;
+    String soapAction="";
+
+    public void setUp(){
+        client=new EchoBlockingClient();
+
+    }
+
+    private boolean Compare(OMElement retEle,String filepath) throws XMLStreamException,
+            XMLComparisonException{
+        boolean compare=false;
+        if(retEle!=null){
+             InputStream stream = Thread.currentThread()
+                     .getContextClassLoader().getResourceAsStream("/" + filepath);
+            javax.xml.stream.XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+            OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+            SOAPEnvelope resEnv = (SOAPEnvelope) builder.getDocumentElement();
+            OMElement resElementtobe = resEnv.getBody().getFirstElement();
+            XMLComparator comparator = new XMLComparator();
+            compare = comparator.compare(retEle,resElementtobe);
+        }
+        return compare;
+    }
+
+
+
+
+
+    public void testEchoEmptyFault()  throws Exception{
+        util=new EchoEmptyFaultClientUtil();
+        retEle =client.sendMsg(util,soapAction);
+        assertTrue(Compare(retEle,"/interopt/sun/round4/simple/resEmptyfault.xml"));
+
+
+    }
+
+
+    //todo fix me Nadana , this fails due to bug in XML Comparator
+    //echoBaseSoapStructFault
+//    public void testIntArrayFault()throws Exception{
+//        util=new EchoIntArrayFaultClientUtil();
+//        retEle = client.sendMsg(util,soapAction);
+//        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resIntArrayFault.xml"));
+//    }
+
+
+
+
+    //echoExtendedStructFault
+    public void testStringFault()throws Exception{
+        util=new EchoStringFaultClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resStringFault.xml"));
+
+
+
+    }
+
+
+    //echomultiplefaults1
+    public void testMultiplefaults1()throws Exception{
+        util=new EchoMultipleFaults1ClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults1.xml"));
+    }
+
+    //echomultiplefaults2
+    public void testMultiplefaults2()throws Exception{
+        util=new EchoMultipleFaults2ClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults2.xml"));
+
+
+    }
+
+    //echomultiplefaults3
+    public void testMultiplefaults3()throws Exception{
+        util=new EchoMultipleFaults3Clientutil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults3.xml"));
+
+
+    }
+    //echomultiplefaults4
+    public void testMultiplefaults4()throws Exception{
+        util=new EchoMultipleFaults4ClientUtil();
+        retEle = client.sendMsg(util,soapAction);
+        assertTrue(Compare( retEle,"/interopt/sun/round4/simple/resMultipleFaults4.xml"));
+
+    }
+
 }

Propchange: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/sun/simple/SunGroupHMain.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round1/Round1InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round1/Round1InteropTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round1/Round1InteropTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round1/Round1InteropTest.java Thu Sep 15 11:52:11 2005
@@ -1,169 +1,169 @@
-package org.apache.axis2.interopt.whitmesa.round1;
-
-import org.apache.axis2.soap.SOAPEnvelope;
-import org.apache.axis2.interopt.whitemesa.round1.util.*;
-import org.apache.axis2.interopt.whitemesa.round1.Round1Client;
-import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
-import org.apache.axis2.AxisFault;
-
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*      http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*
-*/
-
-/**
- * Author: Deepal Jayasinghe
- * Date: Aug 23, 2005
- * Time: 4:27:20 PM
- */
-public class Round1InteropTest extends WhiteMesaIneterop {
-
-    SOAPEnvelope retEnv = null;
-    boolean success = false;
-    String url = "http://soapinterop.java.sun.com:80/round2/base";
-    String soapAction = "http://soapinterop.org/";
-    String resFilePath = "interopt/whitemesa/round1/";
-    String tempPath = "";
-    Round1ClientUtil util;
-    Round1Client client = null;
-    boolean result = false;
-
-    public void setUp(){
-        client = new Round1Client();
-    }
-
-    public void testEchoString() throws AxisFault {
-
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "urn:soapinterop";
-        util = new Round1StringUtil();
-        retEnv = client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "Round1StringUtilRes.xml";
-        result = compare(retEnv, tempPath);
-        assertTrue(result);
-    }
-
-    public void testEchoVoid() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "urn:soapinterop";
-        util = new Round1VoidUtil();
-        retEnv = client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "Round1VoidUtilRes.xml";
-        result = compare(retEnv, tempPath);
-        assertTrue(result);
-    }
-
-    public void testEchoStringArray() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "urn:soapinterop";
-        util = new Round1StringArrayUtil();
-        retEnv = client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "Round1StringArrayRes.xml";
-        result = compare(retEnv, tempPath);
-        assertTrue(result);
-    }
-
-    public void testInteger() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "urn:soapinterop";
-        util = new Round1IntegerUtil();
-        retEnv = client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "Round1IntegerRes.xml";
-        result = compare(retEnv, tempPath);
-        assertTrue(result);
-    }
-
-    public void testIntegerArray() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "urn:soapinterop";
-        util = new Round1IntArrayUtil();
-        retEnv = client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "Round1IntArrayRes.xml";
-        result = compare(retEnv, tempPath);
-        assertTrue(result);
-    }
-
-    public void testEchoFloat() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "urn:soapinterop";
-        util = new Round1FloatUtil();
-        retEnv = client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "Round1FloatRes.xml";
-        result = compare(retEnv, tempPath);
-        assertTrue(result);
-    }
-
-
-    public void testEchoFloatArray() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "urn:soapinterop";
-        util = new Round1FloatArrayUtil();
-        retEnv = client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "Round1FloatArrayRes.xml";
-        result = compare(retEnv, tempPath);
-        assertTrue(result);
-    }
-
-    public void testEchoStruct() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "urn:soapinterop";
-        util = new Round1StructUtil();
-        retEnv = client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "Round1StructRes.xml";
-        result = compare(retEnv, tempPath);
-        assertTrue(result);
-    }
-
-    public void testEchoStructArray() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "urn:soapinterop";
-        util = new Round1StructArrayUtil();
-        retEnv = client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "Round1StructArrayRes.xml";
-        result = compare(retEnv, tempPath);
-        assertTrue(result);
-    }
-
-//    private static boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault {
-//        boolean ok;
-//
-//        try {
-//            if (retEnv != null) {
-//                SOAPBody body = retEnv.getBody();
-//                if (!body.hasFault()) {
-//
-//                    InputStream stream = Round1InteropTest.class.getClassLoader().getResourceAsStream(filePath);
-//
-//                    OMElement firstChild = body.getFirstElement();
-//                    XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
-//                    OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
-//                    SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
-//                    OMElement refNode = refEnv.getBody().getFirstElement();
-//                    XMLComparator comparator = new XMLComparator();
-//                    ok = comparator.compare(firstChild, refNode);
-//                } else
-//                    return false;
-//            } else
-//                return false;
-//        } catch (XMLStreamException e) {
-//            throw new AxisFault(e);
-//        }
-//
-//
-//        return ok;
-//    }
-
-}
+package org.apache.axis2.interopt.whitmesa.round1;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.interopt.whitemesa.round1.util.*;
+import org.apache.axis2.interopt.whitemesa.round1.Round1Client;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+import org.apache.axis2.AxisFault;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Aug 23, 2005
+ * Time: 4:27:20 PM
+ */
+public class Round1InteropTest extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    String url = "http://soapinterop.java.sun.com:80/round2/base";
+    String soapAction = "http://soapinterop.org/";
+    String resFilePath = "interopt/whitemesa/round1/";
+    String tempPath = "";
+    Round1ClientUtil util;
+    Round1Client client = null;
+    boolean result = false;
+
+    public void setUp(){
+        client = new Round1Client();
+    }
+
+    public void testEchoString() throws AxisFault {
+
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "urn:soapinterop";
+        util = new Round1StringUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "Round1StringUtilRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    public void testEchoVoid() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "urn:soapinterop";
+        util = new Round1VoidUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "Round1VoidUtilRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    public void testEchoStringArray() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "urn:soapinterop";
+        util = new Round1StringArrayUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "Round1StringArrayRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    public void testInteger() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "urn:soapinterop";
+        util = new Round1IntegerUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "Round1IntegerRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    public void testIntegerArray() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "urn:soapinterop";
+        util = new Round1IntArrayUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "Round1IntArrayRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    public void testEchoFloat() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "urn:soapinterop";
+        util = new Round1FloatUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "Round1FloatRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+
+    public void testEchoFloatArray() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "urn:soapinterop";
+        util = new Round1FloatArrayUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "Round1FloatArrayRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    public void testEchoStruct() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "urn:soapinterop";
+        util = new Round1StructUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "Round1StructRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+    public void testEchoStructArray() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "urn:soapinterop";
+        util = new Round1StructArrayUtil();
+        retEnv = client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "Round1StructArrayRes.xml";
+        result = compare(retEnv, tempPath);
+        assertTrue(result);
+    }
+
+//    private static boolean compare(SOAPEnvelope retEnv, String filePath) throws AxisFault {
+//        boolean ok;
+//
+//        try {
+//            if (retEnv != null) {
+//                SOAPBody body = retEnv.getBody();
+//                if (!body.hasFault()) {
+//
+//                    InputStream stream = Round1InteropTest.class.getClassLoader().getResourceAsStream(filePath);
+//
+//                    OMElement firstChild = body.getFirstElement();
+//                    XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(stream);
+//                    OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser, null);
+//                    SOAPEnvelope refEnv = (SOAPEnvelope) builder.getDocumentElement();
+//                    OMElement refNode = refEnv.getBody().getFirstElement();
+//                    XMLComparator comparator = new XMLComparator();
+//                    ok = comparator.compare(firstChild, refNode);
+//                } else
+//                    return false;
+//            } else
+//                return false;
+//        } catch (XMLStreamException e) {
+//            throw new AxisFault(e);
+//        }
+//
+//
+//        return ok;
+//    }
+
+}

Propchange: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round1/Round1InteropTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/ESRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/ESRound2InteropTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/ESRound2InteropTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/ESRound2InteropTest.java Thu Sep 15 11:52:11 2005
@@ -1,551 +1,551 @@
-package org.apache.axis2.interopt.whitmesa.round2;
-
-import org.apache.axis2.soap.SOAPEnvelope;
-import org.apache.axis2.interopt.whitemesa.round2.util.*;
-import org.apache.axis2.interopt.whitemesa.round2.SunRound2Client;
-import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
-import org.apache.axis2.AxisFault;
-import java.io.*;
-
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*      http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*
-*/
-
-/**
- * Author: Gayan Asanka
- * Date: Aug 23, 2005
- * Time: 4:27:20 PM
- */
-
-/**
- * class ESRound2InteropTest
- * To test interoperability Axis2 clients vs EasySoap++ server
- * WSDLs:-
- * base   :- http://easysoap.sourceforge.net/interopA.wsdl
- * Group b:- http://easysoap.sourceforge.net/interopB.wsdl
- * Group c:- http://easysoap.sourceforge.net/interopC.wsdl
- */
-public class ESRound2InteropTest extends WhiteMesaIneterop {
-
-    SOAPEnvelope retEnv = null;
-    boolean success = false;
-    File file = null;
-    String url = "";
-    String soapAction = "";
-    String resFilePath = "interopt/whitemesa/round2/";
-    String tempPath = "";
-    SunRound2ClientUtil util;
-    private boolean results = false;
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoString
-     */
-    public void testR2BaseEchoString() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoStringclientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseStringRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoStringArray
-     */
-    public void testR2BaseEchoStringArray() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoStringArrayClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseStringArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoInteger
-     */
-    public void testR2BaseEchoInteger() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoIntegerClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseIntegerRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoIntegerArray
-     */
-    public void testR2BaseEchoIntegerArray() throws AxisFault  {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoIntegerArrayclientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseIntegerArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoFloat
-     */
-    public void testR2BaseEchoFloat()  throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoFloatClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseFloatRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoFloatArray
-     */
-    public void testR2BaseEchoFloatArray()  throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoFloatArrayClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseFloatArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoStruct
-     */
-    public void testRBaseEchoStruct() throws AxisFault  {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoStructClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseStructRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoStructArray
-     */
-    public void testR2BaseEchoStructArray() throws AxisFault  {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoStructArrayClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseStructArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoVoid
-     */
-    public void testR2BaseEchoVoid() throws AxisFault  {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoVoidClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseVoidRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoBase64
-     */
-    public void testR2BaseEchoBase64() throws AxisFault  {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoBase64ClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseBase64Res.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoBase64
-     */
-    public void testR2BaseEchoDate() throws AxisFault  {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoDateClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseDateRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoHexBinary
-     */
-    public void testR2BaseEchoHexBinary() throws AxisFault  {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoHexBinaryClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseHexBinaryRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoDecimal
-     */
-    public void testR2BaseEchoDecimal() throws AxisFault  {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoDecimalClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseDecimalRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoBoolean
-     */
-    public void testR2BaseEchoBoolean() throws AxisFault  {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new Round2EchoBooleanClientUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESBaseBooleanRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group B
-     * operation echoStructAsSimpleTypes
-     */
-    public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupbEchoStructAsSimpleTypesUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupbStructAsSimpleTypesRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group B
-     * operation echoSimpleTypesAsStruct
-     */
-    public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupbEchoSimpleTypesAsStructUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupbSimpletypesAsStructRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group B
-     * operation echo2DStringArray
-     */
-    public void testR2GBEcho2DStringArray() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupbEcho2DStringArrayUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupb2DStringArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group B
-     * operation echoNestedStruct
-     */
-    public void testR2GBEchoNestedStruct() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupbEchoNestedStructUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupbNestedStructRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group B
-     * operation echoNestedArray
-     */
-    public void testR2GBEchoNestedArray() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupbEchoNestedArrayUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupbNestedArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoString
-     */
-    public void testR2GCEchoString() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcEchoStringUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcEchoStringRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoInterger
-     */
-    public void testR2GCEchoInterger() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcIntergerUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcIntergerRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoStringArray
-     */
-    public void testR2GCEchoStringArray() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcStringArrayUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcStringArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoIntergerArray
-     */
-    public void testR2GCEchoIntergerArray() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcIntegerArrayUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcIntegerArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoFloat
-     */
-    public void testR2GCEchoFloat() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcFloatUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcFloatRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoFloatArray
-     */
-    public void testR2GCEchoFloatArray() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcFloatArrayUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcFloatArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoStruct
-     */
-    public void testR2GCEchoStruct() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcStructUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcStructRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoStructArray
-     */
-    public void testR2GCEchoStructArray() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcStructArrayUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcStructArrayRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoVoid
-     */
-    public void testR2GCEchoVoid() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcVoidUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcVoidRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoBase64
-     */
-    public void testR2GCEchoBase64() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcBase64Util();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcBase64Res.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoHexBinary
-     */
-    public void testR2GCEchoHexBinary() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcHexBinaryUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcHexBinaryRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-
-    /**
-     * Round2
-     * Group C
-     * operation echoBoolean
-     */
-    public void testR2GCEchoBoolean() throws AxisFault {
-        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
-        soapAction = "http://soapinterop.org/";
-
-        util = new GroupcBooleanUtil();
-        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-        tempPath = resFilePath + "ESGroupcBooleanRes.xml";
-        results = compare(retEnv, tempPath);
-        assertTrue(results);
-    }
-}
-
+package org.apache.axis2.interopt.whitmesa.round2;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.interopt.whitemesa.round2.util.*;
+import org.apache.axis2.interopt.whitemesa.round2.SunRound2Client;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+import org.apache.axis2.AxisFault;
+import java.io.*;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Gayan Asanka
+ * Date: Aug 23, 2005
+ * Time: 4:27:20 PM
+ */
+
+/**
+ * class ESRound2InteropTest
+ * To test interoperability Axis2 clients vs EasySoap++ server
+ * WSDLs:-
+ * base   :- http://easysoap.sourceforge.net/interopA.wsdl
+ * Group b:- http://easysoap.sourceforge.net/interopB.wsdl
+ * Group c:- http://easysoap.sourceforge.net/interopC.wsdl
+ */
+public class ESRound2InteropTest extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    File file = null;
+    String url = "";
+    String soapAction = "";
+    String resFilePath = "interopt/whitemesa/round2/";
+    String tempPath = "";
+    SunRound2ClientUtil util;
+    private boolean results = false;
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoString
+     */
+    public void testR2BaseEchoString() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseStringRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStringArray
+     */
+    public void testR2BaseEchoStringArray() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStringArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoInteger
+     */
+    public void testR2BaseEchoInteger() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseIntegerRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoIntegerArray
+     */
+    public void testR2BaseEchoIntegerArray() throws AxisFault  {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoIntegerArrayclientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseIntegerArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloat
+     */
+    public void testR2BaseEchoFloat()  throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseFloatRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoFloatArray
+     */
+    public void testR2BaseEchoFloatArray()  throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoFloatArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseFloatArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStruct
+     */
+    public void testRBaseEchoStruct() throws AxisFault  {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStructClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoStructArray
+     */
+    public void testR2BaseEchoStructArray() throws AxisFault  {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoStructArrayClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseStructArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoVoid
+     */
+    public void testR2BaseEchoVoid() throws AxisFault  {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoVoidClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseVoidRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoBase64() throws AxisFault  {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBase64ClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseBase64Res.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBase64
+     */
+    public void testR2BaseEchoDate() throws AxisFault  {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDateClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseDateRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoHexBinary
+     */
+    public void testR2BaseEchoHexBinary() throws AxisFault  {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoHexBinaryClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseHexBinaryRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoDecimal
+     */
+    public void testR2BaseEchoDecimal() throws AxisFault  {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoDecimalClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseDecimalRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoBoolean
+     */
+    public void testR2BaseEchoBoolean() throws AxisFault  {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new Round2EchoBooleanClientUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESBaseBooleanRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoStructAsSimpleTypes
+     */
+    public void testR2GBEchoStructAsSimpleTypes() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoStructAsSimpleTypesUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupbStructAsSimpleTypesRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoSimpleTypesAsStruct
+     */
+    public void testR2GBEchoSimpleTypesAsStruct() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoSimpleTypesAsStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupbSimpletypesAsStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echo2DStringArray
+     */
+    public void testR2GBEcho2DStringArray() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEcho2DStringArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupb2DStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedStruct
+     */
+    public void testR2GBEchoNestedStruct() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupbNestedStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group B
+     * operation echoNestedArray
+     */
+    public void testR2GBEchoNestedArray() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupbEchoNestedArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupbNestedArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoString
+     */
+    public void testR2GCEchoString() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcEchoStringUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcEchoStringRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoInterger
+     */
+    public void testR2GCEchoInterger() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcIntergerUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcIntergerRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoStringArray
+     */
+    public void testR2GCEchoStringArray() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcStringArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcStringArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoIntergerArray
+     */
+    public void testR2GCEchoIntergerArray() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcIntegerArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcIntegerArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoFloat
+     */
+    public void testR2GCEchoFloat() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcFloatUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcFloatRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoFloatArray
+     */
+    public void testR2GCEchoFloatArray() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcFloatArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcFloatArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoStruct
+     */
+    public void testR2GCEchoStruct() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcStructUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcStructRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoStructArray
+     */
+    public void testR2GCEchoStructArray() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcStructArrayUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcStructArrayRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoVoid
+     */
+    public void testR2GCEchoVoid() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcVoidUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcVoidRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoBase64
+     */
+    public void testR2GCEchoBase64() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcBase64Util();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcBase64Res.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoHexBinary
+     */
+    public void testR2GCEchoHexBinary() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcHexBinaryUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcHexBinaryRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+
+    /**
+     * Round2
+     * Group C
+     * operation echoBoolean
+     */
+    public void testR2GCEchoBoolean() throws AxisFault {
+        url = "http://easysoap.sourceforge.net/cgi-bin/interopserver";
+        soapAction = "http://soapinterop.org/";
+
+        util = new GroupcBooleanUtil();
+        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+        tempPath = resFilePath + "ESGroupcBooleanRes.xml";
+        results = compare(retEnv, tempPath);
+        assertTrue(results);
+    }
+}
+

Propchange: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/ESRound2InteropTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/FrtrRound2InteropTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/FrtrRound2InteropTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/FrtrRound2InteropTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/FrtrRound2InteropTest.java Thu Sep 15 11:52:11 2005
@@ -1,285 +1,285 @@
-package org.apache.axis2.interopt.whitmesa.round2;
-
-import org.apache.axis2.soap.SOAPEnvelope;
-import org.apache.axis2.interopt.whitemesa.round2.util.*;
-import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
-
-import java.io.*;
-
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*      http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*
-*/
-
-/**
- * Author: Gayan Asanka
- * Date: Aug 23, 2005
- * Time: 4:27:20 PM
- */
-
-/**
- * class FrtrRound2InteropTest
- * To test Interoperability in Axis2 clients vs Frontier Server, Round 2
- * todo - all test failled!!!
- * WSDLs:-
- * "base"  	http://www.whitemesa.com/interop/InteropTest.wsdl
- */
-
-public class FrtrRound2InteropTest extends WhiteMesaIneterop {
-
-    SOAPEnvelope retEnv = null;
-    boolean success = false;
-    File file = null;
-    String url = "";
-    String soapAction = "";
-    String FS = System.getProperty("file.separator");
-    String resFilePath = "interopt/whitemesa/round2/";
-    String tempPath = "";
-    SunRound2ClientUtil util;
-    private boolean results = false;
-
-    public void testChack(){
-            //just addding a test case , since all the tase casea are fail
-        }
-    
-
-    /**
-     * Round2
-     * Group Base
-     * operation echoString
-     */
-//    public void testR2BaseEchoString() throws AxisFault {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoStringclientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseStringRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoStringArray
-//     */
-//    public void testR2BaseEchoStringArray() throws AxisFault {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoStringArrayClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "SunBaseStringArrayRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoInteger
-//     */
-//    public void testR2BaseEchoInteger() throws AxisFault {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoIntegerClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseIntegerRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoIntegerArray
-//     */
-//    public void testR2BaseEchoIntegerArray() throws AxisFault  {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoIntegerArrayclientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseIntegerArrayRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoFloat
-//     */
-//    public void testR2BaseEchoFloat()  throws AxisFault {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoFloatClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseFloatRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoFloatArray
-//     */
-//    public void testR2BaseEchoFloatArray()  throws AxisFault {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoFloatArrayClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseFloatArrayRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoStruct
-//     */
-//    public void testRBaseEchoStruct() throws AxisFault  {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "";
-//
-//        util = new Round2EchoStructClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseStructRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoStructArray
-//     */
-//    public void testR2BaseEchoStructArray() throws AxisFault  {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoStructArrayClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseStructArrayRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoVoid
-//     */
-//    public void testR2BaseEchoVoid() throws AxisFault  {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoVoidClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseVoidRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoBase64
-//     */
-//    public void testR2BaseEchoBase64() throws AxisFault  {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoBase64ClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseBase64Res.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoBase64
-//     */
-//    public void testR2BaseEchoDate() throws AxisFault  {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoDateClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseDateRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoHexBinary
-//     */
-//    public void testR2BaseEchoHexBinary() throws AxisFault  {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoHexBinaryClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseHexBinaryRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoDecimal
-//     */
-//    public void testR2BaseEchoDecimal() throws AxisFault  {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoDecimalClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseDecimalRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-//
-//    /**
-//     * Round2
-//     * Group Base
-//     * operation echoBoolean
-//     */
-//    public void testR2BaseEchoBoolean() throws AxisFault  {
-//        url = "http://www.soapware.org/xmethodsInterop";
-//        soapAction = "http://soapinterop.org/";
-//
-//        util = new Round2EchoBooleanClientUtil();
-//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
-//        tempPath = resFilePath + "sunBaseBooleanRes.xml";
-//        results = compare(retEnv, tempPath);
-//        assertTrue(results);
-//    }
-
-}
-
+package org.apache.axis2.interopt.whitmesa.round2;
+
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.interopt.whitemesa.round2.util.*;
+import org.apache.axis2.interopt.whitemesa.WhiteMesaIneterop;
+
+import java.io.*;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Gayan Asanka
+ * Date: Aug 23, 2005
+ * Time: 4:27:20 PM
+ */
+
+/**
+ * class FrtrRound2InteropTest
+ * To test Interoperability in Axis2 clients vs Frontier Server, Round 2
+ * todo - all test failled!!!
+ * WSDLs:-
+ * "base"  	http://www.whitemesa.com/interop/InteropTest.wsdl
+ */
+
+public class FrtrRound2InteropTest extends WhiteMesaIneterop {
+
+    SOAPEnvelope retEnv = null;
+    boolean success = false;
+    File file = null;
+    String url = "";
+    String soapAction = "";
+    String FS = System.getProperty("file.separator");
+    String resFilePath = "interopt/whitemesa/round2/";
+    String tempPath = "";
+    SunRound2ClientUtil util;
+    private boolean results = false;
+
+    public void testChack(){
+            //just addding a test case , since all the tase casea are fail
+        }
+    
+
+    /**
+     * Round2
+     * Group Base
+     * operation echoString
+     */
+//    public void testR2BaseEchoString() throws AxisFault {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoStringclientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseStringRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoStringArray
+//     */
+//    public void testR2BaseEchoStringArray() throws AxisFault {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoStringArrayClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "SunBaseStringArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoInteger
+//     */
+//    public void testR2BaseEchoInteger() throws AxisFault {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoIntegerClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseIntegerRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoIntegerArray
+//     */
+//    public void testR2BaseEchoIntegerArray() throws AxisFault  {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoIntegerArrayclientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseIntegerArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoFloat
+//     */
+//    public void testR2BaseEchoFloat()  throws AxisFault {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoFloatClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseFloatRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoFloatArray
+//     */
+//    public void testR2BaseEchoFloatArray()  throws AxisFault {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoFloatArrayClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseFloatArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoStruct
+//     */
+//    public void testRBaseEchoStruct() throws AxisFault  {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "";
+//
+//        util = new Round2EchoStructClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseStructRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoStructArray
+//     */
+//    public void testR2BaseEchoStructArray() throws AxisFault  {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoStructArrayClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseStructArrayRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoVoid
+//     */
+//    public void testR2BaseEchoVoid() throws AxisFault  {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoVoidClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseVoidRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoBase64
+//     */
+//    public void testR2BaseEchoBase64() throws AxisFault  {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoBase64ClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseBase64Res.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoBase64
+//     */
+//    public void testR2BaseEchoDate() throws AxisFault  {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoDateClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseDateRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoHexBinary
+//     */
+//    public void testR2BaseEchoHexBinary() throws AxisFault  {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoHexBinaryClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseHexBinaryRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoDecimal
+//     */
+//    public void testR2BaseEchoDecimal() throws AxisFault  {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoDecimalClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseDecimalRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+//
+//    /**
+//     * Round2
+//     * Group Base
+//     * operation echoBoolean
+//     */
+//    public void testR2BaseEchoBoolean() throws AxisFault  {
+//        url = "http://www.soapware.org/xmethodsInterop";
+//        soapAction = "http://soapinterop.org/";
+//
+//        util = new Round2EchoBooleanClientUtil();
+//        retEnv = SunRound2Client.sendMsg(util, url, soapAction);
+//        tempPath = resFilePath + "sunBaseBooleanRes.xml";
+//        results = compare(retEnv, tempPath);
+//        assertTrue(results);
+//    }
+
+}
+

Propchange: webservices/axis2/trunk/java/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round2/FrtrRound2InteropTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message