@Test public void testRemoveRepresentations() throws ResourceException { setupCommonInitExpectations(); setupCommonRepresentExpectations(); sut.init(restContext, request, response); context.checking(new Expectations() { { oneOf(fr).getId(); will(returnValue(0L)); oneOf(mapper).delete(0); oneOf(mapper).flush(); } }); sut.removeRepresentations(); context.assertIsSatisfied(); }
@Override public void removeRepresentations() throws ResourceException { FeedReader myEntity = entityMapper.findFeedByOpenSocialIdAndModuleId(userId, moduleId); entityMapper.delete(myEntity.getId()); entityMapper.flush(); }
FeedReaderEntityResource extends FeedReaderResource { @Override public void removeRepresentations() throws ResourceException { FeedReader myEntity = entityMapper.findFeedByOpenSocialIdAndModuleId(userId, moduleId); entityMapper.delete(myEntity.getId()); entityMapper.flush(); } }
FeedReaderEntityResource extends FeedReaderResource { @Override public void removeRepresentations() throws ResourceException { FeedReader myEntity = entityMapper.findFeedByOpenSocialIdAndModuleId(userId, moduleId); entityMapper.delete(myEntity.getId()); entityMapper.flush(); } protected  FeedReaderEntityResource(); }
FeedReaderEntityResource extends FeedReaderResource { @Override public void removeRepresentations() throws ResourceException { FeedReader myEntity = entityMapper.findFeedByOpenSocialIdAndModuleId(userId, moduleId); entityMapper.delete(myEntity.getId()); entityMapper.flush(); } protected  FeedReaderEntityResource(); @Override void removeRepresentations(); @Override Representation represent(final Variant variant); @Override void storeRepresentation(final Representation entity); @Override void acceptRepresentation(final Representation entity); }
FeedReaderEntityResource extends FeedReaderResource { @Override public void removeRepresentations() throws ResourceException { FeedReader myEntity = entityMapper.findFeedByOpenSocialIdAndModuleId(userId, moduleId); entityMapper.delete(myEntity.getId()); entityMapper.flush(); } protected  FeedReaderEntityResource(); @Override void removeRepresentations(); @Override Representation represent(final Variant variant); @Override void storeRepresentation(final Representation entity); @Override void acceptRepresentation(final Representation entity);  }