@Test public void testRemove() { final String s = "an string"; tested.remove(s); verify(map, times(1)).remove(s); }
public boolean remove(final T item) { return null != items.remove(getItemId(item)); }
MapRegistry implements DynamicRegistry<T> { public boolean remove(final T item) { return null != items.remove(getItemId(item)); } }
MapRegistry implements DynamicRegistry<T> { public boolean remove(final T item) { return null != items.remove(getItemId(item)); } MapRegistry(final KeyProvider<T> keyProvider,
                final Map<String, T> items); }
MapRegistry implements DynamicRegistry<T> { public boolean remove(final T item) { return null != items.remove(getItemId(item)); } MapRegistry(final KeyProvider<T> keyProvider,
                final Map<String, T> items); @Override void register(final T item); boolean remove(final T item); @Override boolean contains(final T item); @Override boolean isEmpty(); Collection<T> getItems(); void clear(); T getItemByKey(final String key); }
MapRegistry implements DynamicRegistry<T> { public boolean remove(final T item) { return null != items.remove(getItemId(item)); } MapRegistry(final KeyProvider<T> keyProvider,
                final Map<String, T> items); @Override void register(final T item); boolean remove(final T item); @Override boolean contains(final T item); @Override boolean isEmpty(); Collection<T> getItems(); void clear(); T getItemByKey(final String key);  }