assertTrue(getTask().getOnlyIf().isSatisfiedBy(getTask()));
}
@Test
public void testPath() {
DefaultProject rootProject = HelperUtil.createRootProject();
DefaultProject childProject = HelperUtil.createChildProject(rootProject, "child");
childProject.getProjectDir().mkdirs();
DefaultProject childchildProject = HelperUtil.createChildProject(childProject, "childchild");
childchildProject.getProjectDir().mkdirs();
Task task = createTask(rootProject, TEST_TASK_NAME);
assertEquals(Project.PATH_SEPARATOR + TEST_TASK_NAME, task.getPath());
task = createTask(childProject, TEST_TASK_NAME);
assertEquals(Project.PATH_SEPARATOR + "child" + Project.PATH_SEPARATOR + TEST_TASK_NAME, task.getPath());