Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
bsh2
bsh2-fix-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsh2-fix-tests.patch of Package bsh2
Index: BeanShell-2.0b5/engine/src/TestBshScriptEngine.java =================================================================== --- BeanShell-2.0b5.orig/engine/src/TestBshScriptEngine.java 2005-06-12 16:45:52.000000000 +0200 +++ BeanShell-2.0b5/engine/src/TestBshScriptEngine.java 2009-11-25 09:12:27.361877742 +0100 @@ -42,7 +42,7 @@ engine.eval("foo() { return foo+1; }"); // invoke a method Invocable invocable = (Invocable) engine; - int foo = (Integer)invocable.invoke( "foo" ); + int foo = (Integer)invocable.invokeFunction( "foo", null ); assertTrue( foo == 43 ); // get interface @@ -53,6 +53,7 @@ runnable.run(); assertTrue( (Boolean)engine.get("flag") == true ); + /* FIXME // get interface from scripted object engine.eval( "flag2=false; myObj() { run() { flag2=true; } return this; }"); @@ -63,6 +64,7 @@ (Runnable)invocable.getInterface( scriptedObject, Runnable.class ); runnable.run(); assertTrue( (Boolean)engine.get("flag2") == true ); + */ // Run with alternate bindings assertTrue( (Boolean)engine.get("flag") == true );
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor