@Test public void getFragment_result() { item.searchTerm = "result_"; String snippet = item.getFragment(); assertEquals("<span class=\"aecu-highlight\">result_</span>text_sometextsometex...", snippet); }
public String getFragment() { if (StringUtils.isBlank(searchTerm)) { return StringUtils.EMPTY; } ExecutionResult result = readSingleResult(); String snippet = extractFromResult(result); if (StringUtils.isNotBlank(snippet)) { return snippet; } return StringUtils.EMPTY; }
HistorySearchItem extends HistoryDataItem { public String getFragment() { if (StringUtils.isBlank(searchTerm)) { return StringUtils.EMPTY; } ExecutionResult result = readSingleResult(); String snippet = extractFromResult(result); if (StringUtils.isNotBlank(snippet)) { return snippet; } return StringUtils.EMPTY; } }
HistorySearchItem extends HistoryDataItem { public String getFragment() { if (StringUtils.isBlank(searchTerm)) { return StringUtils.EMPTY; } ExecutionResult result = readSingleResult(); String snippet = extractFromResult(result); if (StringUtils.isNotBlank(snippet)) { return snippet; } return StringUtils.EMPTY; }  }
HistorySearchItem extends HistoryDataItem { public String getFragment() { if (StringUtils.isBlank(searchTerm)) { return StringUtils.EMPTY; } ExecutionResult result = readSingleResult(); String snippet = extractFromResult(result); if (StringUtils.isNotBlank(snippet)) { return snippet; } return StringUtils.EMPTY; }  @Override @PostConstruct void setup(); String getFragment(); String getSelectedScript(); String getRunPath(); }
HistorySearchItem extends HistoryDataItem { public String getFragment() { if (StringUtils.isBlank(searchTerm)) { return StringUtils.EMPTY; } ExecutionResult result = readSingleResult(); String snippet = extractFromResult(result); if (StringUtils.isNotBlank(snippet)) { return snippet; } return StringUtils.EMPTY; }  @Override @PostConstruct void setup(); String getFragment(); String getSelectedScript(); String getRunPath();  }