Search in sources :

Example 1 with InheritanceTest2LanguageGrammarAccess

use of org.eclipse.xtext.grammarinheritance.services.InheritanceTest2LanguageGrammarAccess in project xtext-core by eclipse.

the class AnotherInheritanceTest method testSimple.

@Test
public void testSimple() throws Exception {
    InheritanceTest2LanguageGrammarAccess g = (InheritanceTest2LanguageGrammarAccess) getGrammarAccess();
    assertNotNull(g.getFQNAccess());
    AbstractRule fromFQN = g.getFQNAccess().getIDTerminalRuleCall_0().getRule();
    assertEquals(fromFQN, g.getIDRule());
    assertNotNull(g.getModelAccess());
}
Also used : InheritanceTest2LanguageGrammarAccess(org.eclipse.xtext.grammarinheritance.services.InheritanceTest2LanguageGrammarAccess) AbstractRule(org.eclipse.xtext.AbstractRule) Test(org.junit.Test)

Aggregations

AbstractRule (org.eclipse.xtext.AbstractRule)1 InheritanceTest2LanguageGrammarAccess (org.eclipse.xtext.grammarinheritance.services.InheritanceTest2LanguageGrammarAccess)1 Test (org.junit.Test)1