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 2009/04/15 14:45:35 UTC
svn commit: r765166 - in /camel/branches/camel-1.x: ./
components/camel-script/src/test/java/org/apache/camel/
components/camel-script/src/test/java/org/apache/camel/builder/script/
components/camel-script/src/test/java/org/apache/camel/builder/script/...
Author: davsclaus
Date: Wed Apr 15 12:45:34 2009
New Revision: 765166
URL: http://svn.apache.org/viewvc?rev=765166&view=rev
Log:
Merged revisions 765154 via svnmerge from
https://svn.apache.org/repos/asf/camel/trunk
........
r765154 | davsclaus | 2009-04-15 14:31:05 +0200 (Wed, 15 Apr 2009) | 1 line
camel-script cannot run be tested on Max OS with jdk1.5.
........
Added:
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/ScriptTestHelper.java
- copied unchanged from r765154, camel/trunk/components/camel-script/src/test/java/org/apache/camel/ScriptTestHelper.java
Modified:
camel/branches/camel-1.x/ (props changed)
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/BeanShellScriptRouteTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/GroovyScriptRouteTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/JavaScriptExpressionTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/Jsr223Test.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/PythonExpressionTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/RubyExpressionTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/AnyLanguageFilterTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/BeanShellFilterTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/GroovyFilterTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/JavaScriptFilterTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/PythonFilterTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/RubyFilterTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/language/script/JavaScriptLanguageTest.java
camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/language/script/PythonLanguageTest.java
Propchange: camel/branches/camel-1.x/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Apr 15 12:45:34 2009
@@ -1 +1 @@
-/camel/trunk:736980,739733,739904,740251,740295,740306,740596,740663,741848,742231,742705,742739,742854,742856,742898,742906,743613,743762,743773,743920,743959-743960,744123,745105,745367,745541,745751,745826,745978,746269,746872,746895,746962,747258,747678-747704,748392,748436,748821,749563-749564,749574,749628-749629,749936,749956,750017,750334,750396,750761,750796,752068,752117,752418,752751-752755,752764-752773,752956,753087,753101,753175,755136,755487,756313,756348,756870,756939,757636,757693,757743,757865,758539,758563,758600,758617,758692,758990,759362,759453,759887,759931,760003,760890,760909,760937,761194,761536,761583,761607,762047,762633,762650,762935,763095,763484,763551
+/camel/trunk:736980,739733,739904,740251,740295,740306,740596,740663,741848,742231,742705,742739,742854,742856,742898,742906,743613,743762,743773,743920,743959-743960,744123,745105,745367,745541,745751,745826,745978,746269,746872,746895,746962,747258,747678-747704,748392,748436,748821,749563-749564,749574,749628-749629,749936,749956,750017,750334,750396,750761,750796,752068,752117,752418,752751-752755,752764-752773,752956,753087,753101,753175,755136,755487,756313,756348,756870,756939,757636,757693,757743,757865,758539,758563,758600,758617,758692,758990,759362,759453,759887,759931,760003,760890,760909,760937,761194,761536,761583,761607,762047,762633,762650,762935,763095,763484,763551,765154
Propchange: camel/branches/camel-1.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/BeanShellScriptRouteTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/BeanShellScriptRouteTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/BeanShellScriptRouteTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/BeanShellScriptRouteTest.java Wed Apr 15 12:45:34 2009
@@ -20,17 +20,21 @@
import java.util.Map;
import org.apache.camel.ContextTestSupport;
+import org.apache.camel.ScriptTestHelper;
import org.apache.camel.builder.RouteBuilder;
import static org.apache.camel.builder.script.ScriptBuilder.beanShell;
-
/**
* Unit test for a BeanSheel script
*/
public class BeanShellScriptRouteTest extends ContextTestSupport {
public void testSendMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
getMockEndpoint("mock:result").expectedMessageCount(1);
getMockEndpoint("mock:unmatched").expectedMessageCount(0);
@@ -42,6 +46,10 @@
}
public void testSendNonMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
getMockEndpoint("mock:result").expectedMessageCount(0);
getMockEndpoint("mock:unmatched").expectedMessageCount(1);
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/GroovyScriptRouteTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/GroovyScriptRouteTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/GroovyScriptRouteTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/GroovyScriptRouteTest.java Wed Apr 15 12:45:34 2009
@@ -17,6 +17,7 @@
package org.apache.camel.builder.script;
import org.apache.camel.ContextTestSupport;
+import org.apache.camel.ScriptTestHelper;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
@@ -26,6 +27,10 @@
public class GroovyScriptRouteTest extends ContextTestSupport {
public void testGroovyScript() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedBodiesReceived("Hello World");
mock.expectedHeaderReceived("foo", "Hello World");
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/JavaScriptExpressionTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/JavaScriptExpressionTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/JavaScriptExpressionTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/JavaScriptExpressionTest.java Wed Apr 15 12:45:34 2009
@@ -20,6 +20,7 @@
import java.util.Map;
import org.apache.camel.ContextTestSupport;
+import org.apache.camel.ScriptTestHelper;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
@@ -29,6 +30,10 @@
public class JavaScriptExpressionTest extends ContextTestSupport {
public void testSendMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
// TODO Currently, this test fails because the JavaScript expression in createRouteBuilder
// below returns false
// To fix that, we need to figure out how to get the expression to return the right value
@@ -46,6 +51,10 @@
}
public void testSendNonMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
getMockEndpoint("mock:result").expectedMessageCount(0);
getMockEndpoint("mock:unmatched").expectedMessageCount(1);
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/Jsr223Test.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/Jsr223Test.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/Jsr223Test.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/Jsr223Test.java Wed Apr 15 12:45:34 2009
@@ -24,6 +24,7 @@
import javax.script.ScriptEngineManager;
import junit.framework.TestCase;
+import org.apache.camel.ScriptTestHelper;
/**
* @version $Revision$
@@ -32,6 +33,10 @@
private String [] scriptNames = {"beanshell", "groovy", "js", "python", "ruby", "javascript"};
public void testLanguageNames() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
// ruby scripting does not work on IBM's JDK
// see http://jira.codehaus.org/browse/JRUBY-3073
ArrayList<String> scriptNamesAsList = new ArrayList<String>(Arrays.asList(scriptNames));
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/PythonExpressionTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/PythonExpressionTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/PythonExpressionTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/PythonExpressionTest.java Wed Apr 15 12:45:34 2009
@@ -20,6 +20,7 @@
import java.util.Map;
import org.apache.camel.ContextTestSupport;
+import org.apache.camel.ScriptTestHelper;
import org.apache.camel.builder.RouteBuilder;
/**
@@ -28,6 +29,10 @@
public class PythonExpressionTest extends ContextTestSupport {
public void testSendMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
getMockEndpoint("mock:result").expectedMessageCount(1);
getMockEndpoint("mock:unmatched").expectedMessageCount(0);
@@ -39,6 +44,10 @@
}
public void testSendNonMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
getMockEndpoint("mock:result").expectedMessageCount(0);
getMockEndpoint("mock:unmatched").expectedMessageCount(1);
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/RubyExpressionTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/RubyExpressionTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/RubyExpressionTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/RubyExpressionTest.java Wed Apr 15 12:45:34 2009
@@ -20,6 +20,7 @@
import java.util.Map;
import org.apache.camel.ContextTestSupport;
+import org.apache.camel.ScriptTestHelper;
import org.apache.camel.builder.RouteBuilder;
/**
@@ -28,6 +29,10 @@
public class RubyExpressionTest extends ContextTestSupport {
public void testSendMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
getMockEndpoint("mock:result").expectedMessageCount(1);
getMockEndpoint("mock:unmatched").expectedMessageCount(0);
@@ -39,6 +44,10 @@
}
public void testSendNonMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
getMockEndpoint("mock:result").expectedMessageCount(0);
getMockEndpoint("mock:unmatched").expectedMessageCount(1);
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/AnyLanguageFilterTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/AnyLanguageFilterTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/AnyLanguageFilterTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/AnyLanguageFilterTest.java Wed Apr 15 12:45:34 2009
@@ -17,6 +17,7 @@
package org.apache.camel.builder.script.example;
import org.apache.camel.CamelContext;
+import org.apache.camel.ScriptTestHelper;
import org.apache.camel.builder.NoRouteBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.processor.XPathFilterTest;
@@ -29,6 +30,24 @@
public class AnyLanguageFilterTest extends XPathFilterTest {
@Override
+ public void testSendMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendMatchingMessage();
+ }
+
+ @Override
+ public void testSendNotMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendNotMatchingMessage();
+ }
+
+ @Override
protected CamelContext createCamelContext() throws Exception {
return SpringCamelContext.springCamelContext(new ClassPathXmlApplicationContext("org/apache/camel/builder/script/example/anyLanguageFilter.xml"));
}
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/BeanShellFilterTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/BeanShellFilterTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/BeanShellFilterTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/BeanShellFilterTest.java Wed Apr 15 12:45:34 2009
@@ -17,6 +17,7 @@
package org.apache.camel.builder.script.example;
import org.apache.camel.CamelContext;
+import org.apache.camel.ScriptTestHelper;
import org.apache.camel.builder.NoRouteBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.processor.XPathFilterTest;
@@ -29,6 +30,24 @@
public class BeanShellFilterTest extends XPathFilterTest {
@Override
+ public void testSendMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendMatchingMessage();
+ }
+
+ @Override
+ public void testSendNotMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendNotMatchingMessage();
+ }
+
+ @Override
protected CamelContext createCamelContext() throws Exception {
return SpringCamelContext.springCamelContext(new ClassPathXmlApplicationContext("org/apache/camel/builder/script/example/beanShellFilter.xml"));
}
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/GroovyFilterTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/GroovyFilterTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/GroovyFilterTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/GroovyFilterTest.java Wed Apr 15 12:45:34 2009
@@ -17,6 +17,7 @@
package org.apache.camel.builder.script.example;
import org.apache.camel.CamelContext;
+import org.apache.camel.ScriptTestHelper;
import org.apache.camel.builder.NoRouteBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.processor.XPathFilterTest;
@@ -27,6 +28,25 @@
* @version $Revision$
*/
public class GroovyFilterTest extends XPathFilterTest {
+
+ @Override
+ public void testSendMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendMatchingMessage();
+ }
+
+ @Override
+ public void testSendNotMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendNotMatchingMessage();
+ }
+
@Override
protected CamelContext createCamelContext() throws Exception {
return SpringCamelContext.springCamelContext(new ClassPathXmlApplicationContext("org/apache/camel/builder/script/example/groovyFilter.xml"));
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/JavaScriptFilterTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/JavaScriptFilterTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/JavaScriptFilterTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/JavaScriptFilterTest.java Wed Apr 15 12:45:34 2009
@@ -17,6 +17,7 @@
package org.apache.camel.builder.script.example;
import org.apache.camel.CamelContext;
+import org.apache.camel.ScriptTestHelper;
import org.apache.camel.builder.NoRouteBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.processor.XPathFilterTest;
@@ -27,7 +28,25 @@
* @version $Revision$
*/
public class JavaScriptFilterTest extends XPathFilterTest {
-
+
+ @Override
+ public void testSendMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendMatchingMessage();
+ }
+
+ @Override
+ public void testSendNotMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendNotMatchingMessage();
+ }
+
@Override
protected CamelContext createCamelContext() throws Exception {
return SpringCamelContext.springCamelContext(new ClassPathXmlApplicationContext("org/apache/camel/builder/script/example/javaScriptFilter.xml"));
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/PythonFilterTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/PythonFilterTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/PythonFilterTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/PythonFilterTest.java Wed Apr 15 12:45:34 2009
@@ -17,6 +17,7 @@
package org.apache.camel.builder.script.example;
import org.apache.camel.CamelContext;
+import org.apache.camel.ScriptTestHelper;
import org.apache.camel.builder.NoRouteBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.processor.XPathFilterTest;
@@ -29,6 +30,24 @@
public class PythonFilterTest extends XPathFilterTest {
@Override
+ public void testSendMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendMatchingMessage();
+ }
+
+ @Override
+ public void testSendNotMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendNotMatchingMessage();
+ }
+
+ @Override
protected CamelContext createCamelContext() throws Exception {
return SpringCamelContext.springCamelContext(new ClassPathXmlApplicationContext("org/apache/camel/builder/script/example/pythonFilter.xml"));
}
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/RubyFilterTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/RubyFilterTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/RubyFilterTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/builder/script/example/RubyFilterTest.java Wed Apr 15 12:45:34 2009
@@ -17,6 +17,7 @@
package org.apache.camel.builder.script.example;
import org.apache.camel.CamelContext;
+import org.apache.camel.ScriptTestHelper;
import org.apache.camel.builder.NoRouteBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.processor.XPathFilterTest;
@@ -29,6 +30,24 @@
public class RubyFilterTest extends XPathFilterTest {
@Override
+ public void testSendMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendMatchingMessage();
+ }
+
+ @Override
+ public void testSendNotMatchingMessage() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
+ super.testSendNotMatchingMessage();
+ }
+
+ @Override
protected CamelContext createCamelContext() throws Exception {
return SpringCamelContext.springCamelContext(new ClassPathXmlApplicationContext("org/apache/camel/builder/script/example/rubyFilter.xml"));
}
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/language/script/JavaScriptLanguageTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/language/script/JavaScriptLanguageTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/language/script/JavaScriptLanguageTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/language/script/JavaScriptLanguageTest.java Wed Apr 15 12:45:34 2009
@@ -17,6 +17,7 @@
package org.apache.camel.language.script;
import org.apache.camel.LanguageTestSupport;
+import org.apache.camel.ScriptTestHelper;
/**
* @version $Revision$
@@ -24,6 +25,10 @@
public class JavaScriptLanguageTest extends LanguageTestSupport {
public void testLanguageExpressions() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
assertExpression("exchange.getIn()", "Message: <hello id='m123'>world!</hello>");
assertExpression("exchange.getIn().body", "<hello id='m123'>world!</hello>");
assertExpression("request.headers.get('foo')", "abc");
Modified: camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/language/script/PythonLanguageTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/language/script/PythonLanguageTest.java?rev=765166&r1=765165&r2=765166&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/language/script/PythonLanguageTest.java (original)
+++ camel/branches/camel-1.x/components/camel-script/src/test/java/org/apache/camel/language/script/PythonLanguageTest.java Wed Apr 15 12:45:34 2009
@@ -17,6 +17,7 @@
package org.apache.camel.language.script;
import org.apache.camel.LanguageTestSupport;
+import org.apache.camel.ScriptTestHelper;
/**
* @version $Revision$
@@ -24,6 +25,10 @@
public class PythonLanguageTest extends LanguageTestSupport {
public void testLanguageExpressions() throws Exception {
+ if (!ScriptTestHelper.canRunTestOnThisPlatform()) {
+ return;
+ }
+
// the properties are stored in a set so ordering is not known
assertExpression("exchange.in.headers", "{foo=abc, bar=123}", "{bar=123, foo=abc}");