use of org.eclipse.ceylon.compiler.CompilerErrorException in project ceylon by eclipse.
the class CompilerToolTests method testBadIntegerLiteral.
@Test
public void testBadIntegerLiteral() throws Exception {
ToolModel<CeylonCompileTool> model = pluginLoader.loadToolModel("compile");
Assert.assertNotNull(model);
CeylonCompileTool tool = pluginFactory.bindArguments(model, getMainTool(), toolOptions("--src=test/src", "org.eclipse.ceylon.tools.test.badintegerliteral"));
try {
tool.run();
Assert.fail("Tool should have thrown an exception");
} catch (CompilerErrorException e) {
// We expect this, not a FatalToolError
}
}
Aggregations