LogEntry implements Serializable { public boolean isAccessible() { return getDate() != null && (getChangedPaths() != null && !getChangedPaths().isEmpty()); } LogEntry(final long revision, final Map<RevisionProperty, String> properties, final SortedSet<ChangedPath> changedPaths); void setPathAtRevision(String path); String getPathAtRevision(); SortedSet<ChangedPath> getChangedPaths(); long getRevision(); String getAuthor(); Date getDate(); String getMessage(); static void setPathAtRevisionInLogEntries(final List<LogEntry> logEntries, final String path); boolean isAccessible(); @Override String toString();  }
@Test public void testIsAccessible() throws Exception { assertFalse(createLogEntry(12, null, null, null).isAccessible()); assertFalse(createLogEntry(12, null, null, "message").isAccessible()); assertFalse(createLogEntry(12, null, new Date(), null).isAccessible()); final SortedSet<ChangedPath> changedPaths = new TreeSet<ChangedPath>(); changedPaths.add(new ChangedPath("/file1.java", null, 1, ChangeType.MODIFIED)); assertTrue(createLogEntry(12, null, new Date(), null, changedPaths).isAccessible()); }