Search in sources :

Example 6 with CeylonHelpTool

use of com.redhat.ceylon.common.tools.help.CeylonHelpTool in project ceylon-compiler by ceylon.

the class HelpToolTests method testHelpHelp.

@Test
public void testHelpHelp() {
    ToolModel<CeylonHelpTool> model = pluginLoader.loadToolModel("help");
    Assert.assertNotNull(model);
    CeylonHelpTool tool = pluginFactory.bindArguments(model, getMainTool(), Arrays.asList("help"));
    tool.run();
}
Also used : CeylonHelpTool(com.redhat.ceylon.common.tools.help.CeylonHelpTool) Test(org.junit.Test)

Example 7 with CeylonHelpTool

use of com.redhat.ceylon.common.tools.help.CeylonHelpTool in project ceylon-compiler by ceylon.

the class HelpToolTests method testHelpDoc.

@Test
public void testHelpDoc() {
    ToolModel<CeylonHelpTool> model = pluginLoader.loadToolModel("help");
    Assert.assertNotNull(model);
    CeylonHelpTool tool = pluginFactory.bindArguments(model, getMainTool(), Arrays.asList("doc"));
    tool.run();
}
Also used : CeylonHelpTool(com.redhat.ceylon.common.tools.help.CeylonHelpTool) Test(org.junit.Test)

Aggregations

CeylonHelpTool (com.redhat.ceylon.common.tools.help.CeylonHelpTool)7 Test (org.junit.Test)6 OptionArgumentException (com.redhat.ceylon.common.tool.OptionArgumentException)1 StringWriter (java.io.StringWriter)1