@Test public void testDelete() { String feedId = "1"; expect(datastore.put(feedId, null)).andReturn(null); replayAll(); testedClass.delete(feedId); verifyAll(); }
@Override public Serializable delete(String feedId) { return datastore.put(feedId, null); }
CombinedFeedService implements CrudService<CombinedFeed> { @Override public Serializable delete(String feedId) { return datastore.put(feedId, null); } }
CombinedFeedService implements CrudService<CombinedFeed> { @Override public Serializable delete(String feedId) { return datastore.put(feedId, null); } @Inject  CombinedFeedService(InMemoryDataStore datastore, IdGenerator idGenerator,
                               @Named(DEFAULT_REFRESH_PERIOD) String defaultRefreshPeriod); }
CombinedFeedService implements CrudService<CombinedFeed> { @Override public Serializable delete(String feedId) { return datastore.put(feedId, null); } @Inject  CombinedFeedService(InMemoryDataStore datastore, IdGenerator idGenerator,
                               @Named(DEFAULT_REFRESH_PERIOD) String defaultRefreshPeriod); @Override CombinedFeed save(CombinedFeed insertedFeed); @Override Serializable delete(String feedId); @Override CombinedFeed update(CombinedFeed feed); @Override CombinedFeed get(String feedId); @Override List<CombinedFeed> getAll(); }
CombinedFeedService implements CrudService<CombinedFeed> { @Override public Serializable delete(String feedId) { return datastore.put(feedId, null); } @Inject  CombinedFeedService(InMemoryDataStore datastore, IdGenerator idGenerator,
                               @Named(DEFAULT_REFRESH_PERIOD) String defaultRefreshPeriod); @Override CombinedFeed save(CombinedFeed insertedFeed); @Override Serializable delete(String feedId); @Override CombinedFeed update(CombinedFeed feed); @Override CombinedFeed get(String feedId); @Override List<CombinedFeed> getAll();  }