@Test public void eventStoreSavesData() throws IOException { store.save(events); assertTrue(fakeFile.getWriter().toString().length() > 0); }
public void save(LoggableEvent[] events) throws IOException { String text = getGson().toJson(events); Writer writer = configFile.getWriter(); try { writer.write(text); } finally { writer.close(); } }
EventStore { public void save(LoggableEvent[] events) throws IOException { String text = getGson().toJson(events); Writer writer = configFile.getWriter(); try { writer.write(text); } finally { writer.close(); } } }
EventStore { public void save(LoggableEvent[] events) throws IOException { String text = getGson().toJson(events); Writer writer = configFile.getWriter(); try { writer.write(text); } finally { writer.close(); } } EventStore(FileIO configFile); }
EventStore { public void save(LoggableEvent[] events) throws IOException { String text = getGson().toJson(events); Writer writer = configFile.getWriter(); try { writer.write(text); } finally { writer.close(); } } EventStore(FileIO configFile); void save(LoggableEvent[] events); LoggableEvent[] load(); void clear(); }
EventStore { public void save(LoggableEvent[] events) throws IOException { String text = getGson().toJson(events); Writer writer = configFile.getWriter(); try { writer.write(text); } finally { writer.close(); } } EventStore(FileIO configFile); void save(LoggableEvent[] events); LoggableEvent[] load(); void clear();  }