You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bsf-dev@jakarta.apache.org by se...@apache.org on 2009/08/04 02:26:37 UTC
svn commit: r800640 -
/jakarta/bsf/branches/bsf3.x/testing/ruby/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java
Author: sebb
Date: Tue Aug 4 00:26:37 2009
New Revision: 800640
URL: http://svn.apache.org/viewvc?rev=800640&view=rev
Log:
Check for missing engine
Modified:
jakarta/bsf/branches/bsf3.x/testing/ruby/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java
Modified: jakarta/bsf/branches/bsf3.x/testing/ruby/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/branches/bsf3.x/testing/ruby/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java?rev=800640&r1=800639&r2=800640&view=diff
==============================================================================
--- jakarta/bsf/branches/bsf3.x/testing/ruby/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java (original)
+++ jakarta/bsf/branches/bsf3.x/testing/ruby/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java Tue Aug 4 00:26:37 2009
@@ -38,6 +38,7 @@
public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByExtension("rb");
+ assertNotNull("Engine should not be null",engine);
engine.eval("def hello(s)\n return \"Hello \" + s\nend" );
assertTrue(engine instanceof Invocable);
Invocable invocableScript = (Invocable) engine;
---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-dev-help@jakarta.apache.org