void (int failuresCount, int ignoredTestsCount, int passedCount, int testsTotal) { boolean something = false; if (failuresCount > 0) { myState.append(TestRunnerBundle.message("tests.result.prefix") + " ", ERROR_ATTRIBUTES); myState.append(TestRunnerBundle.message("tests.result.failed.count", failuresCount), ERROR_ATTRIBUTES); something = true; } else { myState.append(TestRunnerBundle.message("tests.result.prefix")+" "); } if (passedCount > 0 || ignoredTestsCount + failuresCount == 0) { if (something) { myState.append(", "); } something = true; myState.append(TestRunnerBundle.message("tests.result.passed.count", passedCount)); } if (ignoredTestsCount > 0) { if (something) { myState.append(", "); } myState.append(TestRunnerBundle.message("tests.result.ignored.count", ignoredTestsCount), IGNORE_ATTRIBUTES); } if (testsTotal > 0) { myState.append(TestRunnerBundle.message("tests.result.total.count", testsTotal), SimpleTextAttributes.GRAYED_ATTRIBUTES); } }