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

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