@Test public void testGetHistory() throws Exception { File root = new File(repository.getSourceRoot(), "rcs_test"); RCSRepository repo = (RCSRepository) RepositoryFactory.getRepository(root); History hist = repo.getHistory(new File(root, "Makefile")); List<HistoryEntry> entries = hist.getHistoryEntries(); assertEquals(REVISIONS.length, entries.size()); for (int i = 0; i < entries.size(); i++) { HistoryEntry e = entries.get(i); assertEquals(REVISIONS[i], e.getRevision()); assertNotNull(e.getAuthor()); assertNotNull(e.getDate()); assertNotNull(e.getFiles()); assertNotNull(e.getMessage()); } }
@Override History getHistory(File file) throws HistoryException { return new RCSHistoryParser().parse(file, this); }
RCSRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return new RCSHistoryParser().parse(file, this); } }
RCSRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return new RCSHistoryParser().parse(file, this); } RCSRepository(); }
RCSRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return new RCSHistoryParser().parse(file, this); } RCSRepository();  }
RCSRepository extends Repository { @Override History getHistory(File file) throws HistoryException { return new RCSHistoryParser().parse(file, this); } RCSRepository();   }