servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r470478 - in /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix: components/util/MockServiceComponent.java tck/ReceiverComponent.java
Date Thu, 02 Nov 2006 19:09:31 GMT
Author: gnodet
Date: Thu Nov  2 11:09:29 2006
New Revision: 470478

URL: http://svn.apache.org/viewvc?view=rev&rev=470478
Log:
Add constructors to ReceiverComponent and MockServiceComponent

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/components/util/MockServiceComponent.java
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/tck/ReceiverComponent.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/components/util/MockServiceComponent.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/components/util/MockServiceComponent.java?view=diff&rev=470478&r1=470477&r2=470478
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/components/util/MockServiceComponent.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/components/util/MockServiceComponent.java
Thu Nov  2 11:09:29 2006
@@ -25,6 +25,7 @@
 import javax.jbi.messaging.MessageExchange;
 import javax.jbi.messaging.MessagingException;
 import javax.jbi.messaging.NormalizedMessage;
+import javax.xml.namespace.QName;
 import javax.xml.transform.Source;
 
 import java.util.Iterator;
@@ -44,6 +45,13 @@
     private Resource responseResource;
     private Map responseProperties;
 
+    public MockServiceComponent() {
+    }
+    
+    public MockServiceComponent(QName service, String endpoint) {
+        super(service, endpoint);
+    }
+    
     public Source getResponseContent() {
         if (responseContent == null) {
             if (responseXml != null) {

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/tck/ReceiverComponent.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/tck/ReceiverComponent.java?view=diff&rev=470478&r1=470477&r2=470478
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/tck/ReceiverComponent.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/tck/ReceiverComponent.java
Thu Nov  2 11:09:29 2006
@@ -35,7 +35,11 @@
     private MessageList messageList = new MessageList();
 
     public ReceiverComponent() {
-        super(SERVICE, ENDPOINT);
+        this(SERVICE, ENDPOINT);
+    }
+    
+    public ReceiverComponent(QName service, String endpoint) {
+        super(service, endpoint);
     }
 
     // MessageExchangeListener interface



Mime
View raw message