use of org.eclipse.xtext.serializer.contextFinderTest.Model in project xtext-core by eclipse.
the class ContextFinderTest method testQuantityExclusionTest1.
@Test
public void testQuantityExclusionTest1() throws Exception {
Model model = parseHelper.parse("#5 kw1 bar");
assertEquals("QuantityExclusionTest1", findContextsByContents(model.getQuantityExclusion()));
}
use of org.eclipse.xtext.serializer.contextFinderTest.Model in project xtext-core by eclipse.
the class ContextFinderTest method testNestedTypeTest1.
@Test
public void testNestedTypeTest1() throws Exception {
Model model = parseHelper.parse("#2 kw1 bar");
assertEquals("NestedTypeTest1", findContextsByContents(model.getNestedType()));
}
use of org.eclipse.xtext.serializer.contextFinderTest.Model in project xtext-core by eclipse.
the class ContextFinderTest method testQuantityExclusionTest3.
@Test
public void testQuantityExclusionTest3() throws Exception {
Model model = parseHelper.parse("#5 kw2 bar baz");
assertEquals("QuantityExclusionTest1, QuantityExclusionTest2", findContextsByContents(model.getQuantityExclusion()));
}
use of org.eclipse.xtext.serializer.contextFinderTest.Model in project xtext-core by eclipse.
the class ContextFinderTest method testNodeExclusion2.
@Test
public void testNodeExclusion2() throws Exception {
Model model = parseHelper.parse("#7 'my@' 'my@'");
proxify(model.getNodeExclusion(), ContextFinderTestPackage.Literals.NODE_EXCLUSION__REF);
assertEquals("NodeExclusion2", findContextsByContents(model.getNodeExclusion()));
}
use of org.eclipse.xtext.serializer.contextFinderTest.Model in project xtext-core by eclipse.
the class ContextFinderTest method testNestedTypeTest2.
@Test
public void testNestedTypeTest2() throws Exception {
Model model = parseHelper.parse("#2 kw2 bar");
assertEquals("NestedTypeTest2", findContextsByContents(model.getNestedType()));
}
Aggregations