Package com.github.jknack.antlr4ide.lang

Examples of com.github.jknack.antlr4ide.lang.Option


  }

  @Test
  public void unsupportedOption() throws Exception {

    Option option = createMock(Option.class);
    EClass eClass = createMock(EClass.class);
    EStructuralFeature feature = createMock(EStructuralFeature.class);
    Antlr4Validator validator = PowerMock.createPartialMock(Antlr4Validator.class, "warning");

    expect(option.getName()).andReturn("Some");
    expect(option.eClass()).andReturn(eClass);
    expect(eClass.getEStructuralFeature("name")).andReturn(feature);

    PowerMock.expectPrivate(validator, "warning", "unsupported option 'Some'",
        option, feature);
View Full Code Here


  public void languageOption() throws Exception {
    validOption("language");
  }

  private void validOption(final String name) throws Exception {
    Option option = createMock(Option.class);

    expect(option.getName()).andReturn(name);

    replay(option);

    new Antlr4Validator().unsupportedOption(option);
View Full Code Here

TOP

Related Classes of com.github.jknack.antlr4ide.lang.Option

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.