Package com.github.jknack.antlr4ide.console

Examples of com.github.jknack.antlr4ide.console.Console


    IPath fileFullPath = createMock(IPath.class);
    ILaunchConfigurationType configType = createMock(ILaunchConfigurationType.class);
    CodeGeneratorListener listener = createMock(CodeGeneratorListener.class);
    Set<CodeGeneratorListener> listeners = newHashSet(listener);
    ToolRunner toolRunner = createMock(ToolRunner.class);
    Console console = createMock(Console.class);

    expect(grammarResource.fileFrom(resource)).andReturn(file);

    expect(optionsProvider.options(file)).andReturn(options);
View Full Code Here


    ToolOptions options = createMock(ToolOptions.class);
    ILaunchManager launchManager = createMock(ILaunchManager.class);
    CodeGeneratorListener listener = createMock(CodeGeneratorListener.class);
    Set<CodeGeneratorListener> listeners = newHashSet(listener);
    ToolRunner toolRunner = createMock(ToolRunner.class);
    Console console = createMock(Console.class);

    expect(file.getName()).andReturn("Test.g4");

    listener.beforeProcess(file, options);
View Full Code Here

    ProcessBuilder toolPb = PowerMock.createMock(ProcessBuilder.class);
    Process toolProcess = createMock(Process.class);
    ProcessBuilder dependPb = PowerMock.createMock(ProcessBuilder.class);
    Process dependProcess = createMock(Process.class);

    Console console = createMock(Console.class);

    console.info("ANTLR Tool v%s (%s)", ToolOptionsProvider.VERSION, toolPath.toFile());
    console.info("%s %s", fileName, Joiner.on(" ").join(command));
    console.info("warning: warning message");
    console.error("error: undefined rule: 'x'");

    console.error("\n%s warning(s)\n", 1);
    console.error("%s error(s)\n", 1);

    console.error("BUILD FAIL");

    console.info(eq("Total time: %s %s(s)\n"), isA(Number.class), eq("millisecond"));

    expect(file.getName()).andReturn(fileName);
    expect(file.getPersistentProperty(generatedFiles)).andReturn(
        lexerPath.toOSString() + File.separator + parserPath.toOSString());
    expect(file.getParent()).andReturn(fileParent).times(3);
View Full Code Here

TOP

Related Classes of com.github.jknack.antlr4ide.console.Console

Copyright © 2018 www.massapicom. 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.