use of org.eclipse.xtext.scoping.impl.SyntheticModelAwareURIConverter in project xtext-core by eclipse.
the class IgnoreCaseLinkingWithURIImportsTest method testWithImports.
@Override
@Test
public void testWithImports() throws Exception {
SyntheticModelAwareURIConverter uriConverter = new SyntheticModelAwareURIConverter();
XtextResourceSet resourceSet = get(XtextResourceSet.class);
resourceSet.setURIConverter(uriConverter);
uriConverter.addModel("a.ignorecaseimportstestlanguage", "a A {}");
XtextResource resource = (XtextResource) getResourceFactory().createResource(URI.createURI("b.ignorecaseimportstestlanguage"));
resourceSet.getResources().add(resource);
resource.load(new StringInputStream("'a.ignorecaseimportstestlanguage' b A {}"), null);
EcoreUtil.resolveAll(resource);
assertTrue(resource.getErrors().toString(), resource.getErrors().isEmpty());
}
Aggregations