graphListenerNotified = false;
}
@Test
public void taskCanAccessTaskGraph() {
TestFile buildFile = testFile("build.gradle");
buildFile.writelns("import org.gradle.integtests.TaskExecutionIntegrationTest",
"task a(dependsOn: 'b') << { task ->",
" assert gradle.taskGraph.hasTask(task)",
" assert gradle.taskGraph.hasTask(':a')",
" assert gradle.taskGraph.hasTask(a)",
" assert gradle.taskGraph.hasTask(':b')",