use of org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall2Sub in project xtext-core by eclipse.
the class ConcreteSyntaxValidationTest method testUnassignedRuleCall2.
@Test
public void testUnassignedRuleCall2() throws Exception {
UnassignedRuleCall2SubAction a = f.createUnassignedRuleCall2SubAction();
a.setVal2("foo");
validate(a).assertOK();
UnassignedRuleCall2Sub s = f.createUnassignedRuleCall2Sub();
s.setVal2("foo");
validate(s).assertAll(errorCode(ERROR_WRONG_TYPE));
UnassignedRuleCall2 c = f.createUnassignedRuleCall2();
validate(c).assertAll(errorCode(ERROR_WRONG_TYPE));
}
Aggregations