use of org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall1 in project xtext-core by eclipse.
the class ConcreteSyntaxValidationTest method testUnassignedRuleCall1.
@Test
public void testUnassignedRuleCall1() throws Exception {
UnassignedRuleCall1Sub m = (UnassignedRuleCall1Sub) getModel2("#11 id1 id2");
validate(m).assertOK();
m.setVal1(null);
validate(m).assertAll(err(p.getUnassignedRuleCall1Sub_Val1(), ERROR_VALUE_REQUIRED, 1, 1, ""));
UnassignedRuleCall1 m1 = f.createUnassignedRuleCall1();
validate(m1).assertAll(errorCode(ERROR_WRONG_TYPE));
}
use of org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall1 in project xtext-core by eclipse.
the class ModelImpl method basicSetX11.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetX11(UnassignedRuleCall1 newX11, NotificationChain msgs) {
UnassignedRuleCall1 oldX11 = x11;
x11 = newX11;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CsvalidationtestPackage.MODEL__X11, oldX11, newX11);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations