You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by pr...@apache.org on 2008/01/28 18:35:36 UTC

svn commit: r615965 - /webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/addressing/util/EndpointReferenceUtilsTests.java

Author: pradine
Date: Mon Jan 28 09:35:27 2008
New Revision: 615965

URL: http://svn.apache.org/viewvc?rev=615965&view=rev
Log:
Fix build break in unittest.

Modified:
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/addressing/util/EndpointReferenceUtilsTests.java

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/addressing/util/EndpointReferenceUtilsTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/addressing/util/EndpointReferenceUtilsTests.java?rev=615965&r1=615964&r2=615965&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/addressing/util/EndpointReferenceUtilsTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/addressing/util/EndpointReferenceUtilsTests.java Mon Jan 28 09:35:27 2008
@@ -33,6 +33,7 @@
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axiom.om.impl.builder.StAXOMBuilder;
+import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.addressing.EndpointReferenceHelper;
 import org.apache.axis2.addressing.AddressingConstants.Final;
 import org.apache.axis2.addressing.AddressingConstants.Submission;
@@ -87,13 +88,13 @@
         StAXOMBuilder builder = new StAXOMBuilder(parser);
         OMElement omElement = builder.getDocumentElement();
         
-        org.apache.axis2.addressing.EndpointReference axis2EPR =
+        EndpointReference axis2EPR =
             EndpointReferenceHelper.fromOM(omElement);
         W3CEndpointReference jaxwsEPR =
             (W3CEndpointReference) EndpointReferenceUtils.convertFromAxis2(axis2EPR, Final.WSA_NAMESPACE);
         assertXMLEqual(EPR200508, jaxwsEPR.toString());
      
-        org.apache.axis2.addressing.EndpointReference axis2Result =
+        EndpointReference axis2Result =
             EndpointReferenceUtils.createAxis2EndpointReference("");
         String addressingNamespace = EndpointReferenceUtils.convertToAxis2(axis2Result, jaxwsEPR);
         OMElement eprElement =
@@ -109,7 +110,7 @@
         Source source = new DOMSource(jaxwsDoc);
         
         W3CEndpointReference jaxwsEPR = new W3CEndpointReference(source);
-        org.apache.axis2.addressing.EndpointReference axis2EPR =
+        EndpointReference axis2EPR =
             EndpointReferenceUtils.createAxis2EndpointReference("");
         String addressingNamespace = EndpointReferenceUtils.convertToAxis2(axis2EPR, jaxwsEPR);
         OMElement eprElement =
@@ -127,13 +128,13 @@
         StAXOMBuilder builder = new StAXOMBuilder(parser);
         OMElement omElement = builder.getDocumentElement();
         
-        org.apache.axis2.addressing.EndpointReference axis2EPR =
+        EndpointReference axis2EPR =
             EndpointReferenceHelper.fromOM(omElement);
         SubmissionEndpointReference jaxwsEPR =
             (SubmissionEndpointReference) EndpointReferenceUtils.convertFromAxis2(axis2EPR, Submission.WSA_NAMESPACE);
         assertXMLEqual(EPR200408, jaxwsEPR.toString());
      
-        org.apache.axis2.addressing.EndpointReference axis2Result =
+        EndpointReference axis2Result =
             EndpointReferenceUtils.createAxis2EndpointReference("");
         String addressingNamespace = EndpointReferenceUtils.convertToAxis2(axis2Result, jaxwsEPR);
         OMElement eprElement =
@@ -149,7 +150,7 @@
         Source source = new DOMSource(jaxwsDoc);
         
         SubmissionEndpointReference jaxwsEPR = new SubmissionEndpointReference(source);
-        org.apache.axis2.addressing.EndpointReference axis2EPR =
+        EndpointReference axis2EPR =
             EndpointReferenceUtils.createAxis2EndpointReference("");
         String addressingNamespace = EndpointReferenceUtils.convertToAxis2(axis2EPR, jaxwsEPR);
         OMElement eprElement =
@@ -163,7 +164,7 @@
     
     public void testFailures() throws Exception {
         try {
-            EndpointReferenceUtils.convertFromAxis2(null, Final.WSA_NAMESPACE);
+            EndpointReferenceUtils.convertFromAxis2((EndpointReference) null, Final.WSA_NAMESPACE);
             fail("Expected a failure.");
         }
         catch (Exception e) {
@@ -171,7 +172,7 @@
         }
 
         try {
-            EndpointReferenceUtils.convertFromAxis2(null, Submission.WSA_NAMESPACE);
+            EndpointReferenceUtils.convertFromAxis2((EndpointReference) null, Submission.WSA_NAMESPACE);
             fail("Expected a failure.");
         }
         catch (Exception e) {
@@ -179,7 +180,7 @@
         }
 
         try {
-            EndpointReferenceUtils.convertFromAxis2(null, null);
+            EndpointReferenceUtils.convertFromAxis2((EndpointReference) null, null);
             fail("Expected a failure.");
         }
         catch (Exception e) {
@@ -187,7 +188,7 @@
         }
 
         try {
-            org.apache.axis2.addressing.EndpointReference axis2EPR =
+            EndpointReference axis2EPR =
                 EndpointReferenceUtils.createAxis2EndpointReference("");
             EndpointReferenceUtils.convertToAxis2(axis2EPR, null);
             fail("Expected a failure.");



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org