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 finishClass() { currentClass.addTestMethods(currentMethodList); currentClassList.add(currentClass); currentMethodList = null; currentClass = null; currentTestRunId = null; }