Examples of assertAny()


Examples of org.eclipse.xtext.junit4.validation.AssertableDiagnostics.assertAny()

      "  default => Notify[c]", //
      "}\n");
    String code = Joiner.on("\n").join(source).toString();
    Resource r = loadAndLinkSingleResource(code);
    AssertableDiagnostics asserter = tester.validate(r.getContents().get(0));
    asserter.assertAny(AssertableDiagnostics.errorCode(IPPDiagnostics.ISSUE__UNSUPPORTED_EXPRESSION));

  }

  @Test
  public void test_Issue403() throws Exception {
View Full Code Here

Examples of org.eclipse.xtext.junit4.validation.AssertableDiagnostics.assertAny()

  public void test_hyphenNotOk() throws Exception {
    String code = "$a-b = 10";
    XtextResource r = getResourceFromString(code);

    AssertableDiagnostics asserter = tester.validate(r.getContents().get(0));
    asserter.assertAny(
      AssertableDiagnostics.errorCode(IPPDiagnostics.ISSUE__NOT_ASSIGNABLE),
      AssertableDiagnostics.errorCode(IPPDiagnostics.ISSUE__NOT_NUMERIC));
    resourceWarningDiagnostics(r).assertDiagnostic(IPPDiagnostics.ISSUE__UNKNOWN_VARIABLE);
    resourceErrorDiagnostics(r).assertOK();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.