}
@Test
- public void remove_sets_snapshotId_in_CeActivity_when_CeTaskResult_has_no_snapshot_id() {
+ public void remove_sets_analysisUuid_in_CeActivity_when_CeTaskResult_has_analysis_uuid() {
CeTask task = submit(CeTaskTypes.REPORT, "PROJECT_1");
Optional<CeTask> peek = underTest.peek(WORKER_UUID_2);
assertThat(dto.getWorkerUuid()).isEqualTo("Dustin");
}
- private static String stacktraceToString(Throwable error) {
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- error.printStackTrace(new PrintStream(out));
- return out.toString();
- }
-
@Test
public void fail_to_remove_if_not_in_queue() throws Exception {
CeTask task = submit(CeTaskTypes.REPORT, "PROJECT_1");
session.commit();
return componentDto;
}
+
+ private static String stacktraceToString(Throwable error) {
+ ByteArrayOutputStream out = new ByteArrayOutputStream();
+ error.printStackTrace(new PrintStream(out));
+ return out.toString();
+ }
}