Package org.apache.openejb.server.cli

Examples of org.apache.openejb.server.cli.OpenEJBScripter


        container.close();
    }

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


        assertEquals("foo", out);
    }

    @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

Related Classes of org.apache.openejb.server.cli.OpenEJBScripter

Copyright © 2018 www.massapicom. 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.