Package org.apache.geronimo.gshell.shell

Examples of org.apache.geronimo.gshell.shell.Shell


        shell.execute("help");
        shell.execute("..");
    }
   
    public void testInstallFeature() throws Exception {
        Shell shell = getOsgiService(Shell.class);

        try {
            shell.execute("obr");
            fail("command should not exist");
        } catch (CommandLineExecutionFailed e) {
            assertNotNull(e.getCause());
            assertTrue(e.getCause() instanceof NoSuchCommandException);
        }
        try {
            shell.execute("wrapper");
            fail("command should not exist");
        } catch (CommandLineExecutionFailed e) {
            assertNotNull(e.getCause());
            assertTrue(e.getCause() instanceof NoSuchCommandException);
        }
        String url = getClass().getClassLoader().getResource("features.xml").toString();
        addFeatureRepo(url);
        installFeature("obr");
        installFeature("wrapper");
        shell.execute("obr");
        shell.execute("wrapper");
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.gshell.shell.Shell

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.