@Test public void testCreate() throws Exception { assertEquals(2, clientManager.clients.size()); model.create(); assertEquals(0, events.size()); assertEquals(2, clientManager.clients.size()); }
public Client create() { return clientManager.create(); }
ClientModel { public Client create() { return clientManager.create(); } }
ClientModel { public Client create() { return clientManager.create(); } ClientModel(ClientManager clientManager, TaskManager taskManager); }
ClientModel { public Client create() { return clientManager.create(); } ClientModel(ClientManager clientManager, TaskManager taskManager); void subscribe(Object listener); void unsubscribe(Object listener); Client getSelectedClient(); void selectClient(Client newClient); Client create(); int count(); Client get(int index); int indexOf(Client client); void save(Client client); void delete(Client client); int getTotalSecondsElapsed(Client client); String getTotalTimeElapsed(Client client); BigDecimal getTotalAmountEarned(Client client); String getTotalAmountEarned(Client client, Locale locale); }
ClientModel { public Client create() { return clientManager.create(); } ClientModel(ClientManager clientManager, TaskManager taskManager); void subscribe(Object listener); void unsubscribe(Object listener); Client getSelectedClient(); void selectClient(Client newClient); Client create(); int count(); Client get(int index); int indexOf(Client client); void save(Client client); void delete(Client client); int getTotalSecondsElapsed(Client client); String getTotalTimeElapsed(Client client); BigDecimal getTotalAmountEarned(Client client); String getTotalAmountEarned(Client client, Locale locale);  }