MCPcopy Create free account
hub / github.com/dynjs/dynjs / testArgv

Method testArgv

src/test/java/org/dynjs/jsr223/ScriptEngineTest.java:88–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 }
87
88 @Test
89 public void testArgv() throws ScriptException {
90 engine.put( ScriptEngine.ARGV, new String[]{ "one", "two" });
91 Object result = engine.eval( "dynjs.argv[1]" );
92 assertThat( result ).isEqualTo( "two" );
93 }
94
95 @Test
96 public void testInvokeMethod() throws ScriptException, NoSuchMethodException {

Callers

nothing calls this directly

Calls 2

putMethod · 0.65
evalMethod · 0.45

Tested by

no test coverage detected