camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject svn commit: r790968 - /camel/trunk/components/camel-irc/src/test/java/org/apache/camel/component/irc/IrcsRouteTest.java
Date Fri, 03 Jul 2009 17:21:37 GMT
Author: janstey
Date: Fri Jul  3 17:21:37 2009
New Revision: 790968

URL: http://svn.apache.org/viewvc?rev=790968&view=rev
Log:
back out some test code that wasn't used

Modified:
    camel/trunk/components/camel-irc/src/test/java/org/apache/camel/component/irc/IrcsRouteTest.java

Modified: camel/trunk/components/camel-irc/src/test/java/org/apache/camel/component/irc/IrcsRouteTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-irc/src/test/java/org/apache/camel/component/irc/IrcsRouteTest.java?rev=790968&r1=790967&r2=790968&view=diff
==============================================================================
--- camel/trunk/components/camel-irc/src/test/java/org/apache/camel/component/irc/IrcsRouteTest.java
(original)
+++ camel/trunk/components/camel-irc/src/test/java/org/apache/camel/component/irc/IrcsRouteTest.java
Fri Jul  3 17:21:37 2009
@@ -16,42 +16,20 @@
  */
 package org.apache.camel.component.irc;
 
-import java.security.cert.X509Certificate;
-
-import javax.naming.Context;
-
-import org.apache.camel.util.jndi.JndiContext;
-import org.schwering.irc.lib.ssl.SSLDefaultTrustManager;
-
 public class IrcsRouteTest extends IrcRouteTest {
 
     // TODO This test is disabled until we can find a public SSL enabled IRC 
     // server to test against. To use this you'll need to change the server 
     // information below and the username/password. 
-    
-    @Override
-    protected Context createJndiContext() throws Exception {
-        JndiContext answer = new JndiContext();
-        answer.bind("myCustomManager", new SSLDefaultTrustManager() {@Override
-        public boolean isTrusted(X509Certificate[] chain) {
-            return true;
-        }
-        @Override
-            public String toString() {             
-                return "MyCustomManager!";
-            }
-        });
-        return answer;
-    }   
-    
+
     @Override
     protected String sendUri() {
-        return "ircs://camel-prd@irc.codehaus.org:6667/%23camel-test?trustManager=#myCustomManager";
+        return "ircs://camel-prd@irc.codehaus.org:6667/#camel-test?nickname=camel-prd&password=blah";
     }
 
     @Override    
     protected String fromUri() {
-        return "ircs://camel-con@irc.codehaus.org:6667/%23camel-test?trustManager=#myCustomManager";
+        return "ircs://camel-con@irc.codehaus.org:6667/#camel-test?nickname=camel-con&password=blah";
     }    
 
 }
\ No newline at end of file



Mime
View raw message