@Test public void testSetup() { assertEquals(0, mongoBank.getAccountsCollection().count()); }
public MongoCollection<Document> getAccountsCollection() { return accountsCollection; }
MongoBank implements WireTransfers { public MongoCollection<Document> getAccountsCollection() { return accountsCollection; } }
MongoBank implements WireTransfers { public MongoCollection<Document> getAccountsCollection() { return accountsCollection; } MongoBank();  MongoBank(String dbName, String accountsCollectionName); }
MongoBank implements WireTransfers { public MongoCollection<Document> getAccountsCollection() { return accountsCollection; } MongoBank();  MongoBank(String dbName, String accountsCollectionName); void connect(); void connect(String dbName, String accountsCollectionName); MongoClient getMongoClient(); MongoDatabase getMongoDatabase(); MongoCollection<Document> getAccountsCollection(); @Override void setFunds(String bankAccount, int amount); @Override int getFunds(String bankAccount); @Override boolean transferFunds(int amount, String sourceBackAccount, String destinationBankAccount); }
MongoBank implements WireTransfers { public MongoCollection<Document> getAccountsCollection() { return accountsCollection; } MongoBank();  MongoBank(String dbName, String accountsCollectionName); void connect(); void connect(String dbName, String accountsCollectionName); MongoClient getMongoClient(); MongoDatabase getMongoDatabase(); MongoCollection<Document> getAccountsCollection(); @Override void setFunds(String bankAccount, int amount); @Override int getFunds(String bankAccount); @Override boolean transferFunds(int amount, String sourceBackAccount, String destinationBankAccount);  }