diff options
Diffstat (limited to 'sonar-testing-harness/src')
-rw-r--r-- | sonar-testing-harness/src/main/java/org/sonar/test/RunTestsMultipleTimes.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sonar-testing-harness/src/main/java/org/sonar/test/RunTestsMultipleTimes.java b/sonar-testing-harness/src/main/java/org/sonar/test/RunTestsMultipleTimes.java index 97809138b8d..32815bc4363 100644 --- a/sonar-testing-harness/src/main/java/org/sonar/test/RunTestsMultipleTimes.java +++ b/sonar-testing-harness/src/main/java/org/sonar/test/RunTestsMultipleTimes.java @@ -19,14 +19,16 @@ */ package org.sonar.test; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; import org.junit.rules.TestRule; import org.junit.runner.Description; import org.junit.runners.model.Statement; -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.*; - public class RunTestsMultipleTimes implements TestRule { final int threads; final int times; @@ -57,7 +59,7 @@ public class RunTestsMultipleTimes implements TestRule { } catch (RuntimeException e) { throw e; } catch (Throwable e) { - throw new RuntimeException(e); + throw new IllegalStateException(e); } } })); @@ -75,4 +77,4 @@ public class RunTestsMultipleTimes implements TestRule { } }; } -}
\ No newline at end of file +} |