@Test public void testRemoveClient() { IClient client = reg.lookupClient("1"); Assert.assertNotNull(client); reg.removeClient(client); IClient client2 = null; try { client2 = reg.getClient("1"); fail("An exception should occur here"); } catch (ClientNotFoundException e) { Assert.assertTrue(true); } Assert.assertNull(client2); }
protected void removeClient(IClient client) { clients.remove(client.getId()); }
ClientRegistry implements IClientRegistry, ClientRegistryMBean { protected void removeClient(IClient client) { clients.remove(client.getId()); } }
ClientRegistry implements IClientRegistry, ClientRegistryMBean { protected void removeClient(IClient client) { clients.remove(client.getId()); } ClientRegistry();  ClientRegistry(String name); }
ClientRegistry implements IClientRegistry, ClientRegistryMBean { protected void removeClient(IClient client) { clients.remove(client.getId()); } ClientRegistry();  ClientRegistry(String name); Client getClient(String id); ClientList<Client> getClientList(); boolean hasClient(String id); IClient lookupClient(String id); IClient newClient(Object[] params); String nextId(); String previousId(); }
ClientRegistry implements IClientRegistry, ClientRegistryMBean { protected void removeClient(IClient client) { clients.remove(client.getId()); } ClientRegistry();  ClientRegistry(String name); Client getClient(String id); ClientList<Client> getClientList(); boolean hasClient(String id); IClient lookupClient(String id); IClient newClient(Object[] params); String nextId(); String previousId();  }