private void testError(Options options) { if (testStats == null) { testStats = new TestStats(); } testStats.count++; testStats.error++; if (options.isTestColor()) { out.printf("\33[34m%s\33[0m... [\33[1;31mERROR\33[0m]", options.getTest()); } else { out.printf("%s... [BAD]", options.getTest()); } out.println(); }
private void testFailure(Options options, String format, Object... args) { if (testStats == null) { testStats = new TestStats(); } testStats.count++; testStats.failure++; if (options.isTestColor()) { out.printf("\33[34m%s\33[0m... [\33[1;31mBAD\33[0m]", options.getTest()); } else { out.printf("%s... [BAD]", options.getTest()); } if (format != null) { out.print("\n "); out.printf(format, args); } out.println(); }
private void testSuccess(Options options, String format, Object... args) { if (testStats == null) { testStats = new TestStats(); } testStats.count++; testStats.success++; if (options.isTestColor()) { out.printf("\33[34m%s\33[0m... [\33[1;32mOK\33[0m]", options.getTest()); } else { out.printf("%s... [OK]", options.getTest()); } if (format != null) { out.print("\n "); out.printf(format, args); } out.println(); }