@Test
  public void project_uuid_key_and_name_come_from_CeTask() {
    underTest.finished(true);

    verify(postProjectAnalysisTask).finished(projectAnalysisArgumentCaptor.capture());

    Project project = projectAnalysisArgumentCaptor.getValue().getProject();
    assertThat(project.getUuid()).isEqualTo(ceTask.getComponentUuid());
    assertThat(project.getKey()).isEqualTo(ceTask.getComponentKey());
    assertThat(project.getName()).isEqualTo(ceTask.getComponentName());
  }
  @Test
  public void ceTask_uuid_is_UUID_of_CeTask() {
    underTest.finished(true);

    verify(postProjectAnalysisTask).finished(projectAnalysisArgumentCaptor.capture());

    assertThat(projectAnalysisArgumentCaptor.getValue().getCeTask().getId())
        .isEqualTo(ceTask.getUuid());
  }
Exemplo n.º 3
0
 public void initForTask(CeTask task) {
   MDC.put(MDC_CE_TASK_UUID, task.getUuid());
 }