Examples of CeylonRunTool


Examples of ceylon.modules.bootstrap.CeylonRunTool

    @Test
    public void testNoArgs() throws Exception {
        ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
        Assert.assertNotNull(model);
        try {
            CeylonRunTool tool = pluginFactory.bindArguments(model, Collections.<String>emptyList());
            Assert.fail();
        } catch (OptionArgumentException e) {
            // asserting this is thrown
        }
    }
View Full Code Here

Examples of ceylon.modules.bootstrap.CeylonRunTool

   
    @Test
    public void testModuleVersion() throws Exception {
        ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
        Assert.assertNotNull(model);
        CeylonRunTool tool = pluginFactory.bindArguments(model, options("hello/1.0.0"));
        assertOutput(tool, OUT_EXPECTED_DEFAULT);
    }
View Full Code Here

Examples of ceylon.modules.bootstrap.CeylonRunTool

   
    @Test
    public void testModuleVersionArgs() throws Exception {
        ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
        Assert.assertNotNull(model);
        CeylonRunTool tool = pluginFactory.bindArguments(model, options("hello/1.0.0", "Tako"));
        assertOutput(tool, OUT_EXPECTED_WITH_ARG);
    }
View Full Code Here

Examples of ceylon.modules.bootstrap.CeylonRunTool

   
    @Test
    public void testModuleNoVersion() throws Exception {
        ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
        Assert.assertNotNull(model);
        CeylonRunTool tool = pluginFactory.bindArguments(model, options("hello"));
        assertOutput(tool, OUT_EXPECTED_DEFAULT);
    }
View Full Code Here

Examples of ceylon.modules.bootstrap.CeylonRunTool

   
    @Test
    public void testModuleNoVersionArgs() throws Exception {
        ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
        Assert.assertNotNull(model);
        CeylonRunTool tool = pluginFactory.bindArguments(model, options("hello", "Tako"));
        assertOutput(tool, OUT_EXPECTED_WITH_ARG);
    }
View Full Code Here

Examples of ceylon.modules.bootstrap.CeylonRunTool

   
    @Test
    public void testModuleVersionFunction() throws Exception {
        ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
        Assert.assertNotNull(model);
        CeylonRunTool tool = pluginFactory.bindArguments(model, options("--run=hello.hello", "hello/1.0.0"));
        assertOutput(tool, OUT_EXPECTED_DEFAULT);
    }
View Full Code Here

Examples of ceylon.modules.bootstrap.CeylonRunTool

   
    @Test
    public void testDefault() throws Exception {
        ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
        Assert.assertNotNull(model);
        CeylonRunTool tool = pluginFactory.bindArguments(model, options("default"));
        assertOutput(tool, OUT_EXPECTED_DEFAULT);
    }
View Full Code Here

Examples of ceylon.modules.bootstrap.CeylonRunTool

   
    @Test
    public void testDefaultArg() throws Exception {
        ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
        Assert.assertNotNull(model);
        CeylonRunTool tool = pluginFactory.bindArguments(model, options("default", "Tako"));
        assertOutput(tool, OUT_EXPECTED_WITH_ARG);
    }
View Full Code Here

Examples of ceylon.modules.bootstrap.CeylonRunTool

   
    @Test
    public void testDefaultFunction() throws Exception {
        ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
        Assert.assertNotNull(model);
        CeylonRunTool tool = pluginFactory.bindArguments(model, options("--run=hello", "default"));
        assertOutput(tool, OUT_EXPECTED_DEFAULT);
    }
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.