LogMessageSearchItem implements Serializable { public static List<String> toStringList(final SortedSet<ChangedPath> changedPaths) { if (changedPaths == null) return Collections.emptyList(); final List<String> paths = new ArrayList<String>(); for (ChangedPath changedPath : changedPaths) { paths.add(changedPath.getPath()); } return paths; } protected  LogMessageSearchItem();  LogMessageSearchItem(final LogEntry logEntry); static List<String> toStringList(final SortedSet<ChangedPath> changedPaths); long getRevision(); String getMessage(); void setMessage(final String message); String getAuthor(); void setAuthor(final String author); Date getDate(); List<String> getPaths(); static final String NOT_AVAILABLE_TAG; }
@Test public void testToStringList() throws Exception { final SortedSet<ChangedPath> paths = new TreeSet<ChangedPath>(); paths.add(new ChangedPath("/trunk", null, -1, ChangeType.ADDED)); paths.add(new ChangedPath("/tags", null, -1, ChangeType.ADDED)); assertEquals("[/tags, /trunk]", LogMessageSearchItem.toStringList(paths).toString()); }