servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r407302 - in /incubator/servicemix/trunk/servicemix-wsn2005: pom.xml src/test/java/org/apache/servicemix/wsn/component/WSNComponentTest.java
Date Wed, 17 May 2006 16:14:38 GMT
Author: gnodet
Date: Wed May 17 09:14:38 2006
New Revision: 407302

URL: http://svn.apache.org/viewvc?rev=407302&view=rev
Log:
Remove servicemix-http dependency on servicemix-wsn2005 (test has been moved to servicemix-itests)

Modified:
    incubator/servicemix/trunk/servicemix-wsn2005/pom.xml
    incubator/servicemix/trunk/servicemix-wsn2005/src/test/java/org/apache/servicemix/wsn/component/WSNComponentTest.java

Modified: incubator/servicemix/trunk/servicemix-wsn2005/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-wsn2005/pom.xml?rev=407302&r1=407301&r2=407302&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-wsn2005/pom.xml (original)
+++ incubator/servicemix/trunk/servicemix-wsn2005/pom.xml Wed May 17 09:14:38 2006
@@ -50,11 +50,6 @@
       <scope>test</scope>
     </dependency>
     <dependency>
-      <groupId>${pom.groupId}</groupId>
-      <artifactId>servicemix-http</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
       <groupId>quartz</groupId>
       <artifactId>quartz</artifactId>
       <scope>test</scope>

Modified: incubator/servicemix/trunk/servicemix-wsn2005/src/test/java/org/apache/servicemix/wsn/component/WSNComponentTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-wsn2005/src/test/java/org/apache/servicemix/wsn/component/WSNComponentTest.java?rev=407302&r1=407301&r2=407302&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-wsn2005/src/test/java/org/apache/servicemix/wsn/component/WSNComponentTest.java
(original)
+++ incubator/servicemix/trunk/servicemix-wsn2005/src/test/java/org/apache/servicemix/wsn/component/WSNComponentTest.java
Wed May 17 09:14:38 2006
@@ -31,12 +31,9 @@
 
 import org.apache.activemq.ActiveMQConnectionFactory;
 import org.apache.activemq.broker.BrokerService;
-import org.apache.servicemix.http.HttpEndpoint;
-import org.apache.servicemix.http.HttpSpringComponent;
 import org.apache.servicemix.jbi.container.ActivationSpec;
 import org.apache.servicemix.jbi.container.JBIContainer;
 import org.apache.servicemix.jbi.jaxp.SourceTransformer;
-import org.apache.servicemix.soap.SoapHelper;
 import org.apache.servicemix.tck.Receiver;
 import org.apache.servicemix.tck.ReceiverComponent;
 import org.apache.servicemix.wsn.client.AbstractWSAClient;
@@ -329,40 +326,6 @@
         Thread.sleep(50);
         receiver.getMessageList().assertMessagesReceived(1);
         receiver.getMessageList().flushMessages();
-    }
-
-    public void testDynamicSubscription() throws Exception {
-        HttpSpringComponent httpComponent = new HttpSpringComponent();
-
-        HttpEndpoint httpWSNBroker = new HttpEndpoint();
-        httpWSNBroker.setService(new QName("http://servicemix.org/wsnotification", "NotificationBroker"));
-        httpWSNBroker.setEndpoint("Broker");
-        httpWSNBroker.setRoleAsString("consumer");
-        httpWSNBroker.setLocationURI("http://localhost:8192/WSNBroker/");
-        httpWSNBroker.setSoap(true);
-
-        HttpEndpoint httpReceiver = new HttpEndpoint();
-        httpReceiver.setService(new QName("receiver"));
-        httpReceiver.setEndpoint("endpoint");
-        httpReceiver.setLocationURI("http://localhost:8192/Receiver/");
-        httpReceiver.setDefaultMep(SoapHelper.IN_ONLY);
-        httpReceiver.setSoap(true);
-
-        httpComponent.setEndpoints(new HttpEndpoint[] { httpWSNBroker, httpReceiver });
-        jbi.activateComponent(new ActivationSpec("servicemix-http", httpComponent));
-
-        ReceiverComponent receiver = new ReceiverComponent();
-        receiver.setService(new QName("receiver"));
-        receiver.setEndpoint("endpoint");
-        jbi.activateComponent(new ActivationSpec("receiver", receiver));
-
-        EndpointReferenceType epr = new EndpointReferenceType();
-        epr.setAddress(new AttributedURIType());
-        epr.getAddress().setValue("http://localhost:8192/Receiver/?http.soap=true");
-        wsnBroker.subscribe(epr, "myTopic", null);
-        wsnBroker.notify("myTopic", parse("<hello>world</hello>"));
-
-        receiver.getMessageList().assertMessagesReceived(1);
     }
 
     protected Element parse(String txt) throws Exception {



Mime
View raw message