@Test public void getStatusIcon_fail() { when(history.getResult()).thenReturn(RESULT.FAILURE); String icon = item.getStatusIcon(); assertTrue(StringUtils.isNotBlank(icon)); }
public String getStatusIcon() { if (RESULT.FAILURE.equals(history.getResult())) { return "closeCircle"; } if (RESULT.SUCCESS.equals(history.getResult())) { return "checkCircle"; } return "clock"; }
HistoryDataItem { public String getStatusIcon() { if (RESULT.FAILURE.equals(history.getResult())) { return "closeCircle"; } if (RESULT.SUCCESS.equals(history.getResult())) { return "checkCircle"; } return "clock"; } }
HistoryDataItem { public String getStatusIcon() { if (RESULT.FAILURE.equals(history.getResult())) { return "closeCircle"; } if (RESULT.SUCCESS.equals(history.getResult())) { return "checkCircle"; } return "clock"; }  }
HistoryDataItem { public String getStatusIcon() { if (RESULT.FAILURE.equals(history.getResult())) { return "closeCircle"; } if (RESULT.SUCCESS.equals(history.getResult())) { return "checkCircle"; } return "clock"; }  @PostConstruct void setup(); String getDate(); String getDuration(); String getStatusIcon(); String getStatusColor(); String getPath(); int getScriptCount(); }
HistoryDataItem { public String getStatusIcon() { if (RESULT.FAILURE.equals(history.getResult())) { return "closeCircle"; } if (RESULT.SUCCESS.equals(history.getResult())) { return "checkCircle"; } return "clock"; }  @PostConstruct void setup(); String getDate(); String getDuration(); String getStatusIcon(); String getStatusColor(); String getPath(); int getScriptCount();  }