You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by pz...@apache.org on 2005/11/30 18:06:13 UTC

svn commit: r349987 - in /incubator/synapse/trunk/scratch/prototype3: src/org/apache/synapse/axis2/ test/org/apache/synapse/spi/injection/

Author: pzf
Date: Wed Nov 30 09:05:57 2005
New Revision: 349987

URL: http://svn.apache.org/viewcvs?rev=349987&view=rev
Log:
fix test cases to match latest axis2 snapshot

Modified:
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseMessage.java
    incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/spi/injection/FaultProcessorWithRuleTest.java
    incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/spi/injection/SendBackProcessorWithRuleTest.java

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseMessage.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseMessage.java?rev=349987&r1=349986&r2=349987&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseMessage.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseMessage.java Wed Nov 30 09:05:57 2005
@@ -131,7 +131,6 @@
 	}
 
 	public String getWSAMessageId() {
-
 		return mc.getWSAMessageId();
 	}
 

Modified: incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/spi/injection/FaultProcessorWithRuleTest.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/spi/injection/FaultProcessorWithRuleTest.java?rev=349987&r1=349986&r2=349987&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/spi/injection/FaultProcessorWithRuleTest.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/spi/injection/FaultProcessorWithRuleTest.java Wed Nov 30 09:05:57 2005
@@ -1,14 +1,3 @@
-package org.apache.synapse.spi.injection;
-
-import junit.framework.TestCase;
-import org.apache.axis2.Constants;
-import org.apache.axis2.addressing.EndpointReference;
-import org.apache.axis2.client.MessageSender;
-import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.transport.http.SimpleHTTPServer;
-import org.apache.synapse.util.Axis2EvnSetup;
-
-import javax.xml.namespace.QName;
 /*
 * Copyright 2004,2005 The Apache Software Foundation.
 *
@@ -25,6 +14,18 @@
 * limitations under the License.
 *
 */
+package org.apache.synapse.spi.injection;
+
+import junit.framework.TestCase;
+import org.apache.axis2.Constants;
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.axis2.client.MessageSender;
+import org.apache.axis2.client.Options;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.transport.http.SimpleHTTPServer;
+import org.apache.synapse.util.Axis2EvnSetup;
+
+import javax.xml.namespace.QName;
 
 public class FaultProcessorWithRuleTest extends TestCase {
     /**
@@ -48,8 +49,10 @@
 
     public void testFaultPrcessor() throws Exception {
         MessageSender msgSender = new MessageSender();
-        msgSender.setTo(targetEpr);
-        msgSender.setSenderTransport(Constants.TRANSPORT_HTTP);
+        Options co = new Options();
+        co.setTo(targetEpr);
+        co.setSenderTransportProtocol(Constants.TRANSPORT_HTTP);
+        msgSender.setClientOptions(co);
         msgSender.send(operation.getLocalPart(),Axis2EvnSetup.payload());
 
     }

Modified: incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/spi/injection/SendBackProcessorWithRuleTest.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/spi/injection/SendBackProcessorWithRuleTest.java?rev=349987&r1=349986&r2=349987&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/spi/injection/SendBackProcessorWithRuleTest.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/spi/injection/SendBackProcessorWithRuleTest.java Wed Nov 30 09:05:57 2005
@@ -4,6 +4,7 @@
 import org.apache.axis2.Constants;
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.client.MessageSender;
+import org.apache.axis2.client.Options;
 import org.apache.axis2.transport.http.SimpleHTTPServer;
 import org.apache.synapse.util.Axis2EvnSetup;
 
@@ -43,8 +44,10 @@
 
     public void testSendPrcessor() throws Exception {
         MessageSender msgSender = new MessageSender();
-        msgSender.setTo(targetEpr);
-        msgSender.setSenderTransport(Constants.TRANSPORT_HTTP);
+        Options co = new Options();
+        co.setTo(targetEpr);
+        co.setSenderTransportProtocol(Constants.TRANSPORT_HTTP);
+        msgSender.setClientOptions(co);
         msgSender.send(operation.getLocalPart(), Axis2EvnSetup.payload());
 
     }



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