void (final String methodName) { if (methodName != null) { final long duration = currentTime() - myCurrentTestStart; myPrintStream.println("##teamcity[testFinished name='" + escapeName(methodName.replaceFirst("/", ".")) + (duration > 0 ? "' duration='" + duration : "") + "']"); } myCurrentTest = null; }