|
1 | 1 | package io.flutter.test; |
2 | 2 |
|
3 | | -import com.google.gson.*; |
| 3 | +import com.google.gson.Gson; |
| 4 | +import com.google.gson.JsonArray; |
| 5 | +import com.google.gson.JsonElement; |
| 6 | +import com.google.gson.JsonObject; |
| 7 | +import com.google.gson.JsonSyntaxException; |
4 | 8 | import com.intellij.execution.testframework.TestConsoleProperties; |
5 | 9 | import com.intellij.execution.testframework.sm.ServiceMessageBuilder; |
6 | 10 | import com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter; |
|
18 | 22 |
|
19 | 23 | import java.lang.reflect.Type; |
20 | 24 | import java.text.ParseException; |
21 | | -import java.util.*; |
| 25 | +import java.util.ArrayList; |
| 26 | +import java.util.HashMap; |
| 27 | +import java.util.List; |
| 28 | +import java.util.Map; |
| 29 | +import java.util.Objects; |
22 | 30 | import java.util.regex.Matcher; |
23 | 31 | import java.util.regex.Pattern; |
24 | 32 |
|
@@ -263,7 +271,7 @@ private boolean handleTestDone(JsonObject obj) throws ParseException { |
263 | 271 | //if (test.getMetadata().skip) return true; // skipped tests are reported as ignored in handleTestStart(). testFinished signal must follow |
264 | 272 |
|
265 | 273 | ServiceMessageBuilder testFinished = ServiceMessageBuilder.testFinished(test.getBaseName()); |
266 | | - long duration = getTimestamp(obj) - (Long)myTestIdToTimestamp.get(test.getId()); |
| 274 | + long duration = getTimestamp(obj) - myTestIdToTimestamp.get(test.getId()); |
267 | 275 | testFinished.addAttribute("duration", Long.toString(duration)); |
268 | 276 |
|
269 | 277 | return finishMessage(testFinished, test.getId(), test.getValidParentId()) && checkGroupDone(test.getParent()); |
|
0 commit comments