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-unsubscr...@jakarta.apache.org For additional commands, e-mail: bsf-dev-h...@jakarta.apache.org