jakarta-bsf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r800640 - /jakarta/bsf/branches/bsf3.x/testing/ruby/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java
Date Tue, 04 Aug 2009 00:26:37 GMT
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


Mime
View raw message