JobDetailFormatter { protected static void addError(StringBuilder sb, String message) { sb.append("<span class=\"error\" style=\"font-weight: bold;\">"); sb.append(message); sb.append("</span>"); sb.append(BREAK); }  static String createJobDetails(JobValidator validator, Workload workload, JobInstance proposedJobInstance); static String createJobDetails(JobValidator validator, String scriptName);  }
@Test public void addError() { StringBuilder sb = new StringBuilder(); JobDetailFormatter.addError(sb, "Error"); assertTrue(sb.length() > 0); }
@Test public void testAddError_1() throws Exception { StringBuilder sb = new StringBuilder(); String message = ""; JobDetailFormatter.addError(sb, message); }