Search in sources :

Example 1 with UnassignedRuleCall2Sub

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));
}
Also used : UnassignedRuleCall2(org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall2) UnassignedRuleCall2SubAction(org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall2SubAction) UnassignedRuleCall2Sub(org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall2Sub) Test(org.junit.Test)

Aggregations

UnassignedRuleCall2 (org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall2)1 UnassignedRuleCall2Sub (org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall2Sub)1 UnassignedRuleCall2SubAction (org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall2SubAction)1 Test (org.junit.Test)1