use of org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall2 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));
}
use of org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall2 in project xtext-core by eclipse.
the class ModelImpl method basicSetX12.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetX12(UnassignedRuleCall2 newX12, NotificationChain msgs) {
UnassignedRuleCall2 oldX12 = x12;
x12 = newX12;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CsvalidationtestPackage.MODEL__X12, oldX12, newX12);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations