@Test public void testSetup() { assertEquals(0, mongoEventLog.getEventsCollection().count()); }
public MongoCollection<Document> getEventsCollection() { return eventsCollection; }
MongoEventLog implements LotteryEventLog { public MongoCollection<Document> getEventsCollection() { return eventsCollection; } }
MongoEventLog implements LotteryEventLog { public MongoCollection<Document> getEventsCollection() { return eventsCollection; } MongoEventLog();  MongoEventLog(String dbName, String eventsCollectionName); }
MongoEventLog implements LotteryEventLog { public MongoCollection<Document> getEventsCollection() { return eventsCollection; } MongoEventLog();  MongoEventLog(String dbName, String eventsCollectionName); void connect(); void connect(String dbName, String eventsCollectionName); MongoClient getMongoClient(); MongoDatabase getMongoDatabase(); MongoCollection<Document> getEventsCollection(); @Override void ticketSubmitted(PlayerDetails details); @Override void ticketSubmitError(PlayerDetails details); @Override void ticketDidNotWin(PlayerDetails details); @Override void ticketWon(PlayerDetails details, int prizeAmount); @Override void prizeError(PlayerDetails details, int prizeAmount); }
MongoEventLog implements LotteryEventLog { public MongoCollection<Document> getEventsCollection() { return eventsCollection; } MongoEventLog();  MongoEventLog(String dbName, String eventsCollectionName); void connect(); void connect(String dbName, String eventsCollectionName); MongoClient getMongoClient(); MongoDatabase getMongoDatabase(); MongoCollection<Document> getEventsCollection(); @Override void ticketSubmitted(PlayerDetails details); @Override void ticketSubmitError(PlayerDetails details); @Override void ticketDidNotWin(PlayerDetails details); @Override void ticketWon(PlayerDetails details, int prizeAmount); @Override void prizeError(PlayerDetails details, int prizeAmount);  }