void (@NotNull final TestFinished testFinished) { //TODO //final Integer duration = testFinished.getTestDuration(); //fireOnTestFinished(testFinished.getTestName(), duration != null ? duration.intValue() : 0); final String durationStr = testFinished.getAttributes().get(ATTR_KEY_TEST_DURATION); // Test duration in milliseconds or null if not reported Long duration = null; if (!StringUtil.isEmptyOrSpaces(durationStr)) { duration = convertToLong(durationStr, testFinished); } TestFinishedEvent testFinishedEvent = new TestFinishedEvent(testFinished, duration, testFinished.getAttributes().get(ATTR_KEY_TEST_OUTPUT_FILE)); fireOnTestFinished(testFinishedEvent); }