LogCommand extends RevisionRangeCommand { public String calculateNextPath() { return nextPath != null ? nextPath : getPath(); }  String getNextPath(); void setNextPath(final String nextPath); Revision getNextRevision(); void setNextRevision(final Revision nextRevision); boolean isStopOnCopy(); void setStopOnCopy(final boolean stopOnCopy); boolean isPaging(); void setPaging(final boolean paging); long calculateFromRevision(long headRevision); Revision calculateNextRevision(); String calculateNextPath(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testCalculateNextPath() throws Exception { final LogCommand command = new LogCommand(); assertEquals("/", command.calculateNextPath()); command.setNextPath("trunk"); assertEquals("trunk", command.calculateNextPath()); }