use of ceylon.modules.bootstrap.CeylonRunTool in project ceylon by eclipse.
the class RunToolTestCase method testModuleNoVersionArgs.
@Test
public void testModuleNoVersionArgs() throws Exception {
ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
Assert.assertNotNull(model);
CeylonRunTool tool = pluginFactory.bindArguments(model, getMainTool(), options("hello", "Tako"));
assertOutput(tool, OUT_EXPECTED_WITH_ARG);
}
use of ceylon.modules.bootstrap.CeylonRunTool in project ceylon by eclipse.
the class RunToolTestCase method testQuotedModuleNameNoVersion.
@Test
public void testQuotedModuleNameNoVersion() throws Exception {
ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
Assert.assertNotNull(model);
CeylonRunTool tool = pluginFactory.bindArguments(model, getMainTool(), options("foo.long.module"));
assertOutput(tool, OUT_EXPECTED_DEFAULT);
}
use of ceylon.modules.bootstrap.CeylonRunTool in project ceylon by eclipse.
the class RunToolTestCase method testNoArgs.
@Test
public void testNoArgs() throws Exception {
ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
Assert.assertNotNull(model);
try {
CeylonRunTool tool = pluginFactory.bindArguments(model, getMainTool(), Collections.<String>emptyList());
Assert.fail();
} catch (OptionArgumentException e) {
// asserting this is thrown
}
}
use of ceylon.modules.bootstrap.CeylonRunTool in project ceylon by eclipse.
the class RunToolTestCase method testModuleVersion.
@Test
public void testModuleVersion() throws Exception {
ToolModel<CeylonRunTool> model = pluginLoader.loadToolModel("run");
Assert.assertNotNull(model);
CeylonRunTool tool = pluginFactory.bindArguments(model, getMainTool(), options("hello/1.0.0"));
assertOutput(tool, OUT_EXPECTED_DEFAULT);
}
Aggregations