Пример #1
0
 @Test
 public void resolveLocatesTaskByPath() {
   Task task = addTask("task");
   expectTaskLookupInOtherProject(":", "task", task);
   assertThat(container.resolveTask(new StringBuilder(":task")), sameInstance(task));
 }
Пример #2
0
  @Test
  public void resolveLocatesTaskByName() {
    Task task = addTask("1");

    assertThat(container.resolveTask(1), sameInstance(task));
  }