LogImpl implements Log { @Override public List<ProjectLogEntry> all() throws ServerCommunicationException { String url = getDefaultLogUrl(); RestClientResponse response = restClient.doGet(url); String responseBody = response.getResponseBody(); ByteArrayInputStream inStream = asByteArrayInputStream(responseBody); RssResource.Rss rss = rssConverter.fromXml(inStream); ProjectLog projectLog = ProjectLog.from(rss); return projectLog.getItems(); } LogImpl(Configuration conf, RestClient restClient); @Override List<ProjectLogEntry> all(); @Override ProjectLogEntry lastOne(); @Override List<ProjectLogEntry> last(Integer numberOfActions); @Override List<ProjectLogEntry> fresherThan(ProjectLogEntry entry); Log using(Workspace currentWorkspace, Project currentProject);  }
@Test public void shouldFetchAllAvailable() throws Exception { Log log = janbanery.log(); List<ProjectLogEntry> all = log.all(); assertValidProjectLogEntries(all); assertThat(all.size()).isEqualTo(100); }