use of org.eclipse.xtext.junit4.util.URIBasedTestResourceDescription in project xtext-eclipse by eclipse.
the class StateBasedContainerManagerTest method testGetVisibleContainers_02.
@Test
public void testGetVisibleContainers_02() {
IFile file = getFile(project1, "doesNotExist");
URI uri = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
IResourceDescription description = new URIBasedTestResourceDescription(uri);
List<IContainer> visibleContainers = containerManager.getVisibleContainers(description, this);
assertEquals(2, visibleContainers.size());
assertEquals(3, Iterables.size(visibleContainers.get(0).getResourceDescriptions()));
assertEquals(1, Iterables.size(visibleContainers.get(1).getResourceDescriptions()));
assertNotNull(visibleContainers.get(0).getResourceDescription(uri));
assertNotNull(visibleContainers.get(0).getResourceDescription(uri1));
assertNotNull(visibleContainers.get(0).getResourceDescription(uri2));
assertNotNull(visibleContainers.get(1).getResourceDescription(uri3));
}
Aggregations