void (Test test) { final long duration = System.currentTimeMillis() - myCurrentTestStart; System.out.println("\n##teamcity[testFinished name='" + escapeName(getMethodName(test)) + (duration > 0 ? "' duration='" + duration : "") + "']"); }