private void startTestMethod(
      String name,
      String testInstanceName,
      String status,
      String description,
      String duration,
      String startedAt,
      String isConfig) {
    Date startedAtDate = null;
    try {
      startedAtDate = this.dateFormat.parse(startedAt);
    } catch (ParseException e) {
      log("Unable to parse started-at value: " + startedAt);
    }

    currentMethod =
        new MethodResult(
            name,
            status,
            description,
            duration,
            startedAtDate == null ? -1 : startedAtDate.getTime(),
            isConfig,
            currentTestRunId,
            currentTest.getName(),
            currentSuite,
            testInstanceName);
    List<String> groups = methodGroupMap.get(currentClass.getCanonicalName() + "|" + name);
    if (groups != null) {
      currentMethod.setGroups(groups);
    }
  }
 private void endReporterOutput() {
   // some test method might have reporter output lines
   if (currentMethod != null && reporterOutputBuilder != null) {
     currentMethod.setReporterOutput(reporterOutputBuilder.toString());
   }
   reporterOutputBuilder = null;
 }
  private void finishException() {
    MethodResultException mrEx =
        new MethodResultException(
            exceptionName, currentMessage, currentShortStackTrace, currentFullStackTrace);
    currentMethod.setException(mrEx);

    mrEx = null;
    currentMessage = null;
    currentShortStackTrace = null;
    currentFullStackTrace = null;
    exceptionName = null;
  }
 private void updateTestMethodLists(MethodResult testMethod) {
   if (testMethod.isConfig()) {
     if ("FAIL".equals(testMethod.getStatus())) {
       finalResults.getFailedConfigs().add(testMethod);
     } else if ("SKIP".equals(testMethod.getStatus())) {
       finalResults.getSkippedConfigs().add(testMethod);
     }
   } else {
     if ("FAIL".equals(testMethod.getStatus())) {
       finalResults.getFailedTests().add(testMethod);
     } else if ("SKIP".equals(testMethod.getStatus())) {
       finalResults.getSkippedTests().add(testMethod);
     } else if ("PASS".equals(testMethod.getStatus())) {
       finalResults.getPassedTests().add(testMethod);
     }
   }
 }
 private void finishMethodParameters() {
   currentMethod.setParameters(currentMethodParamsList);
   currentMethodParamsList = null;
 }