]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9040 fix incorrect test method name
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 28 Mar 2017 08:36:57 +0000 (10:36 +0200)
committerEric Hartmann <hartmann.eric@gmail.Com>
Thu, 27 Apr 2017 07:23:18 +0000 (09:23 +0200)
server/sonar-server/src/test/java/org/sonar/server/computation/queue/InternalCeQueueImplTest.java

index e577395d822b2c705e8a88c7bd90f8e058ab4b1c..0151e48d37ad8a1e78e8798eca689e13fbd1b1e9 100644 (file)
@@ -193,7 +193,7 @@ public class InternalCeQueueImplTest {
   }
 
   @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);
@@ -241,12 +241,6 @@ public class InternalCeQueueImplTest {
     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");
@@ -436,4 +430,10 @@ public class InternalCeQueueImplTest {
     session.commit();
     return componentDto;
   }
+
+  private static String stacktraceToString(Throwable error) {
+    ByteArrayOutputStream out = new ByteArrayOutputStream();
+    error.printStackTrace(new PrintStream(out));
+    return out.toString();
+  }
 }