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 ch...@apache.org on 2004/12/28 05:13:47 UTC

svn commit: r123467 - in webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis: addressing clientapi engine

Author: chinthaka
Date: Mon Dec 27 20:13:46 2004
New Revision: 123467

URL: http://svn.apache.org/viewcvs?view=rev&rev=123467
Log:
build break fixed.
Modified:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/addressing/EndpointReferenceTypeTest.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceive.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceiveAsync.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineAndDeploymentTest.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineTest.java

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/addressing/EndpointReferenceTypeTest.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/addressing/EndpointReferenceTypeTest.java?view=diff&rev=123467&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/addressing/EndpointReferenceTypeTest.java&r1=123466&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/addressing/EndpointReferenceTypeTest.java&r2=123467
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/addressing/EndpointReferenceTypeTest.java	(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/addressing/EndpointReferenceTypeTest.java	Mon Dec 27 20:13:46 2004
@@ -26,7 +26,7 @@
 
 public class EndpointReferenceTypeTest extends TestCase {
 
-    EndpointReferenceType endpointReferenceType;
+    EndpointReference endpointReference;
     private String headerType = AddressingConstants.WSA_FROM;
     private String address = "htttp://wwww.openource.lk/~chinthaka";
 
@@ -39,28 +39,28 @@
      */
     protected void setUp() throws Exception {
         super.setUp();
-        endpointReferenceType = new EndpointReferenceType(headerType, address);
+        endpointReference = new EndpointReference(headerType, address);
     }
 
     public void testGetAndSetMessageInformationHeaderType() {
-        assertEquals("MessageInformationHeaderType not set properly in the constructor", headerType, endpointReferenceType.getMessageInformationHeaderType());
+        assertEquals("MessageInformationHeaderType not set properly in the constructor", headerType, endpointReference.getMessageInformationHeaderType());
 
-        endpointReferenceType.setMessageInformationHeaderType(AddressingConstants.WSA_REPLY_TO);
-        assertEquals("MessageInformationHeaderType not set properly in the setter method", AddressingConstants.WSA_REPLY_TO, endpointReferenceType.getMessageInformationHeaderType());
+        endpointReference.setMessageInformationHeaderType(AddressingConstants.WSA_REPLY_TO);
+        assertEquals("MessageInformationHeaderType not set properly in the setter method", AddressingConstants.WSA_REPLY_TO, endpointReference.getMessageInformationHeaderType());
     }
 
     public void testGetAndSetAddress() {
-        assertEquals("Address not set properly in the constructor", address, endpointReferenceType.getAddress());
+        assertEquals("Address not set properly in the constructor", address, endpointReference.getAddress());
 
         String newAddress = "http://www.axis2.com";
-        endpointReferenceType.setAddress(newAddress);
-        assertEquals("Address not set properly in the setter method", newAddress, endpointReferenceType.getAddress());
+        endpointReference.setAddress(newAddress);
+        assertEquals("Address not set properly in the setter method", newAddress, endpointReference.getAddress());
     }
 
     public void testGetAndSetPortType() {
         QName portType = new QName("www.someport.com", "port");
-        endpointReferenceType.setPortType(portType);
-        assertEquals("PortType not set/get properly", portType, endpointReferenceType.getPortType());
+        endpointReference.setPortType(portType);
+        assertEquals("PortType not set/get properly", portType, endpointReference.getPortType());
     }
 
     public void testGetAndSetReferenceProperties() {
@@ -68,9 +68,9 @@
         for(int i=0; i < 10; i++){
            anyContentType.addReferenceValue(new QName("http://www.opensouce.lk/"+i, ""+i), "value "+i*100);
         }
-        endpointReferenceType.setReferenceProperties(anyContentType);
+        endpointReference.setReferenceProperties(anyContentType);
 
-        AnyContentType retrievedAnyContentType = endpointReferenceType.getReferenceProperties();
+        AnyContentType retrievedAnyContentType = endpointReference.getReferenceProperties();
         for(int i=0; i < 10; i++){
            String value = retrievedAnyContentType.getReferenceValue(new QName("http://www.opensouce.lk/"+i, ""+i));
             assertEquals("Input value differs from what is taken out from AnyContentType", value, "value "+i*100);
@@ -83,9 +83,9 @@
         for(int i=0; i < 10; i++){
            anyContentType.addReferenceValue(new QName("http://www.opensouce.lk/"+i, ""+i), "value "+i*50);
         }
-        endpointReferenceType.setReferenceParameters(anyContentType);
+        endpointReference.setReferenceParameters(anyContentType);
 
-        AnyContentType retrievedAnyContentType = endpointReferenceType.getReferenceParameters();
+        AnyContentType retrievedAnyContentType = endpointReference.getReferenceParameters();
         for(int i=0; i < 10; i++){
            String value = retrievedAnyContentType.getReferenceValue(new QName("http://www.opensouce.lk/"+i, ""+i));
             assertEquals("Input value differs from what is taken out from AnyContentType", value, "value "+i*50);
@@ -94,13 +94,13 @@
 
     public void testGetAndSetServiceName() {
         ServiceName serviceName = new ServiceName(new QName("www.someservicename.org", "service"));
-        endpointReferenceType.setServiceName(serviceName);
-        ServiceName retrievedServiceName = endpointReferenceType.getServiceName();
+        endpointReference.setServiceName(serviceName);
+        ServiceName retrievedServiceName = endpointReference.getServiceName();
         assertEquals("ServiceName name has not been get/set properly", serviceName.getName(), retrievedServiceName.getName());
 
         serviceName = new ServiceName(new QName("www.someservicename.org", "service"), "portName");
-        endpointReferenceType.setServiceName(serviceName);
-        retrievedServiceName = endpointReferenceType.getServiceName();
+        endpointReference.setServiceName(serviceName);
+        retrievedServiceName = endpointReference.getServiceName();
         assertEquals("ServiceName name has not been get/set properly", serviceName.getName(), retrievedServiceName.getName());
         assertEquals("ServiceName portName has not been get/set properly", serviceName.getPortName(), retrievedServiceName.getPortName());
     }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceive.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceive.java?view=diff&rev=123467&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceive.java&r1=123466&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceive.java&r2=123467
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceive.java	(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceive.java	Mon Dec 27 20:13:46 2004
@@ -20,7 +20,7 @@
 
 import org.apache.axis.AbstractTestCase;
 import org.apache.axis.addressing.AddressingConstants;
-import org.apache.axis.addressing.EndpointReferenceType;
+import org.apache.axis.addressing.EndpointReference;
 import org.apache.axis.context.MessageContext;
 import org.apache.axis.description.AxisOperation;
 import org.apache.axis.description.Parameter;
@@ -88,7 +88,7 @@
     public void testSendReceive() throws Exception {
         
         SOAPEnvelope envelope = getBasicEnvelope();
-        EndpointReferenceType targetEPR = new EndpointReferenceType(
+        EndpointReference targetEPR = new EndpointReference(
                 AddressingConstants.WSA_TO,"http://127.0.0.1:"+EngineUtils.TESTING_PORT+"/axis/services/EchoXMLService");
         Call call = new Call();
         call.setTo(targetEPR);

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceiveAsync.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceiveAsync.java?view=diff&rev=123467&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceiveAsync.java&r1=123466&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceiveAsync.java&r2=123467
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceiveAsync.java	(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/clientapi/TestSendReceiveAsync.java	Mon Dec 27 20:13:46 2004
@@ -17,7 +17,7 @@
 
 import org.apache.axis.AbstractTestCase;
 import org.apache.axis.addressing.AddressingConstants;
-import org.apache.axis.addressing.EndpointReferenceType;
+import org.apache.axis.addressing.EndpointReference;
 import org.apache.axis.context.MessageContext;
 import org.apache.axis.description.AxisOperation;
 import org.apache.axis.encoding.EncodingTest.Echo;
@@ -101,7 +101,7 @@
     public void testSendReceiveAsync() throws Exception{
 
         SOAPEnvelope envelope=getBasicEnvelope();
-        EndpointReferenceType targetEPR = new EndpointReferenceType(
+        EndpointReference targetEPR = new EndpointReference(
                 AddressingConstants.WSA_TO,"http://127.0.0.1:"+EngineUtils.TESTING_PORT+"/axis/services/EchoXMLService");
         Call call = new Call();
         call.setTo(targetEPR);

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineAndDeploymentTest.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineAndDeploymentTest.java?view=diff&rev=123467&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineAndDeploymentTest.java&r1=123466&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineAndDeploymentTest.java&r2=123467
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineAndDeploymentTest.java	(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineAndDeploymentTest.java	Mon Dec 27 20:13:46 2004
@@ -19,7 +19,7 @@
 
 import org.apache.axis.AbstractTestCase;
 import org.apache.axis.addressing.AddressingConstants;
-import org.apache.axis.addressing.EndpointReferenceType;
+import org.apache.axis.addressing.EndpointReference;
 import org.apache.axis.clientapi.Call;
 import org.apache.axis.impl.transport.http.SimpleHTTPReceiver;
 import org.apache.axis.om.OMElement;
@@ -55,7 +55,7 @@
             
             Call call = new Call();
             URL url = new URL("http","127.0.0.1",EngineUtils.TESTING_PORT,"/axis/services/EchoXMLService");
-            call.setTo(new EndpointReferenceType(AddressingConstants.WSA_TO,url.toString()));
+            call.setTo(new EndpointReference(AddressingConstants.WSA_TO,url.toString()));
             OMElement omele = call.sendReceive(envelope);
             assertNotNull(omele);
     }

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineTest.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineTest.java?view=diff&rev=123467&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineTest.java&r1=123466&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineTest.java&r2=123467
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineTest.java	(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/engine/EngineTest.java	Mon Dec 27 20:13:46 2004
@@ -23,7 +23,7 @@
 import junit.framework.TestCase;
 
 import org.apache.axis.addressing.AddressingConstants;
-import org.apache.axis.addressing.EndpointReferenceType;
+import org.apache.axis.addressing.EndpointReference;
 import org.apache.axis.context.MessageContext;
 import org.apache.axis.impl.description.AxisService;
 
@@ -45,7 +45,7 @@
         engineRegistry = EngineUtils.createMockRegistry(serviceName,operationName,transportName);
         mc = new MessageContext(engineRegistry);
         AxisService service = engineRegistry.getService(serviceName);
-        mc.setTo(new EndpointReferenceType(AddressingConstants.WSA_TO,"/axis/services/EchoService"));
+        mc.setTo(new EndpointReference(AddressingConstants.WSA_TO,"/axis/services/EchoService"));
         mc.setOperation(service.getOperation(operationName));
         
         OutputStream out = System.out;

Re: svn commit: r123467 - in webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis: addressing clientapi engine

Posted by Glen Daniels <gl...@thoughtcraft.com>.
Thanks, Eran - I must have clicked "commit" on the src directory instead 
of the top level!

--Glen

chinthaka@apache.org wrote:
> Author: chinthaka
> Date: Mon Dec 27 20:13:46 2004
> New Revision: 123467
> 
> URL: http://svn.apache.org/viewcvs?view=rev&rev=123467
> Log:
> build break fixed.

Re: svn commit: r123467 - in webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis: addressing clientapi engine

Posted by Glen Daniels <gl...@thoughtcraft.com>.
Thanks, Eran - I must have clicked "commit" on the src directory instead 
of the top level!

--Glen

chinthaka@apache.org wrote:
> Author: chinthaka
> Date: Mon Dec 27 20:13:46 2004
> New Revision: 123467
> 
> URL: http://svn.apache.org/viewcvs?view=rev&rev=123467
> Log:
> build break fixed.