use of org.eclipse.xtext.linking.langATestLanguage.Main in project xtext-core by eclipse.
the class LinkingErrorTest method testReparse.
@Test
public void testReparse() throws Exception {
String modelText = " type A extends B \n type B extends C";
XtextResource resource = getResourceFromStringAndExpect(modelText, 1);
Main model = (Main) getModel(resource);
assertEquals(2, model.getTypes().size());
assertEquals(4, getContentSize(model));
resource.reparse(modelText);
model = (Main) getModel(resource);
assertEquals(2, model.getTypes().size());
assertEquals(4, getContentSize(model));
}
Aggregations