You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2010/09/22 19:58:31 UTC

svn commit: r1000109 - in /synapse/branches/2.0/modules/transports/core/nhttp/src/test/java/org/apache/synapse/transport/nhttp: HttpCoreNIOListenerTest.java HttpTransportDescriptionFactory.java

Author: ruwan
Date: Wed Sep 22 17:58:31 2010
New Revision: 1000109

URL: http://svn.apache.org/viewvc?rev=1000109&view=rev
Log:
Backporting the test framework

Removed:
    synapse/branches/2.0/modules/transports/core/nhttp/src/test/java/org/apache/synapse/transport/nhttp/HttpTransportDescriptionFactory.java
Modified:
    synapse/branches/2.0/modules/transports/core/nhttp/src/test/java/org/apache/synapse/transport/nhttp/HttpCoreNIOListenerTest.java

Modified: synapse/branches/2.0/modules/transports/core/nhttp/src/test/java/org/apache/synapse/transport/nhttp/HttpCoreNIOListenerTest.java
URL: http://svn.apache.org/viewvc/synapse/branches/2.0/modules/transports/core/nhttp/src/test/java/org/apache/synapse/transport/nhttp/HttpCoreNIOListenerTest.java?rev=1000109&r1=1000108&r2=1000109&view=diff
==============================================================================
--- synapse/branches/2.0/modules/transports/core/nhttp/src/test/java/org/apache/synapse/transport/nhttp/HttpCoreNIOListenerTest.java (original)
+++ synapse/branches/2.0/modules/transports/core/nhttp/src/test/java/org/apache/synapse/transport/nhttp/HttpCoreNIOListenerTest.java Wed Sep 22 17:58:31 2010
@@ -23,6 +23,7 @@ import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
 import org.apache.axis2.transport.testkit.ManagedTestSuite;
+import org.apache.axis2.transport.testkit.axis2.SimpleTransportDescriptionFactory;
 import org.apache.axis2.transport.testkit.axis2.TransportDescriptionFactory;
 import org.apache.axis2.transport.testkit.http.HttpTransportTestSuiteBuilder;
 
@@ -33,7 +34,9 @@ public class HttpCoreNIOListenerTest ext
         // These tests don't work because of a problem similar to SYNAPSE-418
         suite.addExclude("(test=EchoXML)");
         
-        TransportDescriptionFactory tdfNIO = new HttpTransportDescriptionFactory();
+        TransportDescriptionFactory tdfNIO =
+            new SimpleTransportDescriptionFactory("http", HttpCoreNIOListener.class,
+                                                  HttpCoreNIOSender.class);
         
         HttpTransportTestSuiteBuilder builder = new HttpTransportTestSuiteBuilder(suite, tdfNIO);