assertEquals("/bin/\n/src/\n", content);
}
@Test
public void testIgnoreProject() throws Exception {
IgnoreOperation operation = executeIgnore(
project.getProject().getLocation());
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
File rootFile = root.getRawLocation().toFile();
File ignoreFile = new File(rootFile, Constants.GITIGNORE_FILENAME);
String content = testUtils.slurpAndClose(ignoreFile.toURI().toURL()
.openStream());
assertEquals("/" + project.getProject().getName() + "/\n", content);
assertTrue(operation.isGitignoreOutsideWSChanged());
}