Exemplo n.º 1
0
  @Before
  public void setup() {
    context.checking(
        new Expectations() {
          {
            allowing(project).absoluteProjectPath("list");
            will(returnValue(":path"));
            allowing(project).getTasks();
            will(returnValue(taskContainer));
            allowing(project).getConvention();
            will(returnValue(null));
            allowing(project).getAllprojects();
            will(returnValue(toSet(project)));
            allowing(project).getSubprojects();
            will(returnValue(toSet()));
          }
        });

    task = TestUtil.create(temporaryFolder).task(TaskReportTask.class);
    task.setRenderer(renderer);
  }