Search in sources :

Example 21 with CeylonDocTool

use of org.eclipse.ceylon.ceylondoc.CeylonDocTool in project ceylon by eclipse.

the class DocToolTests method testDocSourceCode.

@Test
public void testDocSourceCode() throws Exception {
    ToolModel<CeylonDocTool> model = pluginLoader.loadToolModel("doc");
    Assert.assertNotNull(model);
    CeylonDocTool tool = pluginFactory.bindArguments(model, getMainTool(), toolOptions("--source-code", "--src=test/src", "org.eclipse.ceylon.tools.test.ceylon"));
    tool.run();
}
Also used : CeylonDocTool(org.eclipse.ceylon.ceylondoc.CeylonDocTool) Test(org.junit.Test)

Example 22 with CeylonDocTool

use of org.eclipse.ceylon.ceylondoc.CeylonDocTool in project ceylon by eclipse.

the class DocToolTests method testDocMultiple.

@Test
public void testDocMultiple() throws Exception {
    ToolModel<CeylonDocTool> model = pluginLoader.loadToolModel("doc");
    Assert.assertNotNull(model);
    CeylonDocTool tool = pluginFactory.bindArguments(model, getMainTool(), toolOptions("--src=test/src", "org.eclipse.ceylon.tools.test.multiple.*"));
    tool.run();
}
Also used : CeylonDocTool(org.eclipse.ceylon.ceylondoc.CeylonDocTool) Test(org.junit.Test)

Example 23 with CeylonDocTool

use of org.eclipse.ceylon.ceylondoc.CeylonDocTool in project ceylon by eclipse.

the class DocToolTests method testDoc.

@Test
public void testDoc() throws Exception {
    ToolModel<CeylonDocTool> model = pluginLoader.loadToolModel("doc");
    Assert.assertNotNull(model);
    CeylonDocTool tool = pluginFactory.bindArguments(model, getMainTool(), toolOptions("--src=test/src", "org.eclipse.ceylon.tools.test.ceylon"));
    tool.run();
}
Also used : CeylonDocTool(org.eclipse.ceylon.ceylondoc.CeylonDocTool) Test(org.junit.Test)

Aggregations

CeylonDocTool (org.eclipse.ceylon.ceylondoc.CeylonDocTool)23 Test (org.junit.Test)20 File (java.io.File)16 Module (org.eclipse.ceylon.model.typechecker.model.Module)3 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 CeylonTool (org.eclipse.ceylon.common.tools.CeylonTool)1