servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccust...@apache.org
Subject svn commit: r814111 - /servicemix/components/bindings/servicemix-xmpp/trunk/src/test/java/org/apache/servicemix/xmpp/UriConfigurationTest.java
Date Sat, 12 Sep 2009 06:28:29 GMT
Author: ccustine
Date: Sat Sep 12 06:28:29 2009
New Revision: 814111

URL: http://svn.apache.org/viewvc?rev=814111&view=rev
Log:
Fixed broken unit test in XMPP component.

Modified:
    servicemix/components/bindings/servicemix-xmpp/trunk/src/test/java/org/apache/servicemix/xmpp/UriConfigurationTest.java

Modified: servicemix/components/bindings/servicemix-xmpp/trunk/src/test/java/org/apache/servicemix/xmpp/UriConfigurationTest.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-xmpp/trunk/src/test/java/org/apache/servicemix/xmpp/UriConfigurationTest.java?rev=814111&r1=814110&r2=814111&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-xmpp/trunk/src/test/java/org/apache/servicemix/xmpp/UriConfigurationTest.java
(original)
+++ servicemix/components/bindings/servicemix-xmpp/trunk/src/test/java/org/apache/servicemix/xmpp/UriConfigurationTest.java
Sat Sep 12 06:28:29 2009
@@ -16,12 +16,9 @@
  */
 package org.apache.servicemix.xmpp;
 
-import javax.jbi.servicedesc.ServiceEndpoint;
-import javax.xml.namespace.QName;
-
 import junit.framework.TestCase;
 
-import org.apache.servicemix.common.ResolvedEndpoint;
+import java.net.URI;
 
 /**
  * @version $Revision: $
@@ -30,10 +27,8 @@
 
 
     public void testUriConfiguration() throws Exception {
-        ServiceEndpoint serviceEndpoint = new ResolvedEndpoint("xmpp://servicemix-user@localhost/test-user@localhost",
new QName("test"));
-
-        XMPPComponent component = new XMPPComponent();
-        PrivateChatEndpoint endpoint = (PrivateChatEndpoint) component.createEndpoint(serviceEndpoint);
+        PrivateChatEndpoint endpoint = new PrivateChatEndpoint();
+        endpoint.setUri(new URI("xmpp://servicemix-user@localhost/test-user@localhost"));
         assertNotNull("Should have created an endpoint", endpoint);
 
         assertEquals("localhost", endpoint.getHost());



Mime
View raw message