use of org.eclipse.xtext.serializer.contextFinderTest.Model in project xtext-core by eclipse.
the class ContextFinderTest method testNodeExclusion1List.
@Test
public void testNodeExclusion1List() throws Exception {
Model model = parseHelper.parse("#8 'myname' myname");
proxify(model.getNodeExclusionList(), ContextFinderTestPackage.Literals.NODE_EXCLUSION_LIST__REF);
assertEquals("NodeExclusion1List", findContextsByContents(model.getNodeExclusionList()));
}
use of org.eclipse.xtext.serializer.contextFinderTest.Model in project xtext-core by eclipse.
the class ContextFinderTest method testValueExclusionTest2.
@Test
public void testValueExclusionTest2() throws Exception {
Model model = parseHelper.parse("#6 lit2");
assertEquals("ValueExclusionTest2", findContextsByContents(model.getValueExclusion()));
}
use of org.eclipse.xtext.serializer.contextFinderTest.Model in project xtext-core by eclipse.
the class ContextFinderTest method testRootContainer.
@Test
public void testRootContainer() throws Exception {
Model model = parseHelper.parse("#0 model #1 kw1 bar");
assertEquals("Model", findContextsByContentsAndContainer(model));
assertEquals("Model2", findContextsByContentsAndContainer(model.getModel()));
}
use of org.eclipse.xtext.serializer.contextFinderTest.Model in project xtext-core by eclipse.
the class ContextFinderTest method testNestedTypeRecursiveTest2.
@Test
public void testNestedTypeRecursiveTest2() throws Exception {
Model model = parseHelper.parse("#3 kw2 . .");
assertEquals("NestedTypeRecursiveTest2, NestedTypeRecursiveTest2_NestedTypeRecursiveTest_2_0", findContextsByContents(model.getNestedTypeRecursiveTest2()));
}
use of org.eclipse.xtext.serializer.contextFinderTest.Model in project xtext-core by eclipse.
the class ContextFinderTest method testParentRefTest1.
@Test
public void testParentRefTest1() throws Exception {
Model model = parseHelper.parse("#4 kw1 foo");
ParentRefTestChild child1 = ((ParentRefTest1) model.getParentRef()).getChild1();
assertEquals("ParentRefTestChild1", findContextsByContentsAndContainer(child1));
}
Aggregations