Package org.apache.openejb.server.cli

Examples of org.apache.openejb.server.cli.OpenEJBScripter.evaluate()


    }

    @Test
    public void call() throws ScriptException {
        final OpenEJBScripter shell = new OpenEJBScripter();
        final Object out = shell.evaluate("groovy", "Foo.foo()");
        assertEquals("foo", out);
    }

    @Test
    public void callUsingCDI() throws ScriptException {
View Full Code Here


    }

    @Test
    public void callUsingCDI() throws ScriptException {
        final OpenEJBScripter shell = new OpenEJBScripter();
        final Object out = shell.evaluate("groovy", "bm.beanFromName('OpenEJBGroovyShellTest', 'bar').test()");
        assertEquals("ok", out);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.