LocalJournal implements ChangeJournal { @Override public Records allRecords( boolean descendingOrder ) { return recordsFrom(records, descendingOrder); } LocalJournal( String journalLocation,
                         boolean asyncWritesEnabled,
                         int maxDaysToKeepEntries ); protected  LocalJournal( String journalLocation ); @Override boolean started(); @SuppressWarnings( "rawtypes" ) @Override synchronized void start(); @Override synchronized void shutdown(); @Override void notify( ChangeSet changeSet ); @Override synchronized void addRecords( JournalRecord... records ); @Override synchronized void removeOldRecords(); @Override Records allRecords( boolean descendingOrder ); @Override JournalRecord lastRecord(); @Override Records recordsNewerThan( LocalDateTime changeSetTime,
                                     boolean inclusive,
                                     boolean descendingOrder ); @Override Iterator<NodeKey> changedNodesSince( final long timestamp ); @Override String journalId();  }
@Test public void shouldReturnAllRecords() throws Exception { assertEquals(8, journal.allRecords(false).size()); }