Search in sources :

Example 1 with UnassignedRuleCall1

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

Example 2 with UnassignedRuleCall1

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;
}
Also used : UnassignedRuleCall1(org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall1) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

UnassignedRuleCall1 (org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall1)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 UnassignedRuleCall1Sub (org.eclipse.xtext.validation.csvalidationtest.UnassignedRuleCall1Sub)1 Test (org.junit.Test)1