use of org.eclipse.xtend.core.macro.AbstractFileSystemSupport in project xtext-xtend by eclipse.
the class EclipseFileSystemTest method testIssue383.
@Test
public void testIssue383() {
if ((this.fs instanceof AbstractFileSystemSupport)) {
final AbstractFileSystemSupport afs = ((AbstractFileSystemSupport) this.fs);
final IProject px = this.createProject("px");
this.createProject("py");
final ResourceSet rs = this.resourceSetProvider.get(px);
final Resource rx = rs.createResource(URI.createPlatformResourceURI("px/foo/xxxx", true));
final Resource rxb = rs.createResource(URI.createPlatformResourceURI("px/bar/yyyy", true));
final Resource ry = rs.createResource(URI.createPlatformResourceURI("py/bar/xxxx", true));
Path pathx = afs.getPath(rx);
Assert.assertEquals("/px/foo/xxxx", pathx.toString());
Path pathxb = afs.getPath(rxb);
Assert.assertEquals("/px/bar/yyyy", pathxb.toString());
Path pathy = afs.getPath(ry);
Assert.assertEquals("/py/bar/xxxx", pathy.toString());
} else {
Assert.fail("fs is no AbstractFileSystemSupport");
}
}
Aggregations