You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2010/02/01 12:48:03 UTC
svn commit: r905262 -
/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java
Author: davsclaus
Date: Mon Feb 1 11:48:03 2010
New Revision: 905262
URL: http://svn.apache.org/viewvc?rev=905262&view=rev
Log:
Skipping tests on Windows which has problem loading jruby currently.
Modified:
camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java
Modified: camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java?rev=905262&r1=905261&r2=905262&view=diff
==============================================================================
--- camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java (original)
+++ camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java Mon Feb 1 11:48:03 2010
@@ -34,6 +34,10 @@
@Test
public void testSendMatchingMessage() throws Exception {
+ if (isPlatform("windows")) {
+ return;
+ }
+
MockEndpoint resultEndpoint = getMockEndpoint("mock:results");
resultEndpoint.expectedBodiesReceived(expected);
@@ -44,6 +48,10 @@
@Test
public void testSendNotMatchingMessage() throws Exception {
+ if (isPlatform("windows")) {
+ return;
+ }
+
MockEndpoint resultEndpoint = getMockEndpoint("mock:results");
resultEndpoint.expectedMessageCount(0);
@@ -52,9 +60,12 @@
assertMockEndpointsSatisfied();
}
-
@Override
protected CamelContext createCamelContext() throws Exception {
+ // appears to cause issue on some windows with loading jruby
+ if (isPlatform("windows")) {
+ return super.createCamelContext();
+ }
CamelContext answer = super.createCamelContext();
RubyCamel.setCamelContext(answer);