@Test public void resolveLocatesTaskByPath() { Task task = addTask("task"); expectTaskLookupInOtherProject(":", "task", task); assertThat(container.resolveTask(new StringBuilder(":task")), sameInstance(task)); }
@Test public void resolveLocatesTaskByName() { Task task = addTask("1"); assertThat(container.resolveTask(1), sameInstance(task)); }