@Test public void acknowledge() throws Exception { FlakeId debateId = nextFlakeId(); service.acknowledge(account, debateId); assertEquals("ack does nothing when no feed", 0, service.listFeeds(account, null).size()); FeedAsset asset = service.createReplyFeed(debateId, account.getAccountId()); assertFalse(asset.isAcked()); service.acknowledge(account, asset.getAssetId()); assertTrue(service.listFeeds(account, null).get(0).isAcked()); }
@Override public void acknowledge(Authorization authorization, FlakeId assetId) { feedAssetDao.acknowledge(authorization.authenticatedId(), assetId); }
FeedServiceImpl implements FeedService { @Override public void acknowledge(Authorization authorization, FlakeId assetId) { feedAssetDao.acknowledge(authorization.authenticatedId(), assetId); } }
FeedServiceImpl implements FeedService { @Override public void acknowledge(Authorization authorization, FlakeId assetId) { feedAssetDao.acknowledge(authorization.authenticatedId(), assetId); }  }
FeedServiceImpl implements FeedService { @Override public void acknowledge(Authorization authorization, FlakeId assetId) { feedAssetDao.acknowledge(authorization.authenticatedId(), assetId); }  @Override FeedAsset createReplyFeed(FlakeId debateId, UUID replyToAccountId); @Override List<FeedAsset> listFeeds(Authorization authorization, FlakeId startAssetId); @Override void acknowledge(Authorization authorization, FlakeId assetId); @Override int countUnread(Authorization authorization); }
FeedServiceImpl implements FeedService { @Override public void acknowledge(Authorization authorization, FlakeId assetId) { feedAssetDao.acknowledge(authorization.authenticatedId(), assetId); }  @Override FeedAsset createReplyFeed(FlakeId debateId, UUID replyToAccountId); @Override List<FeedAsset> listFeeds(Authorization authorization, FlakeId startAssetId); @Override void acknowledge(Authorization authorization, FlakeId assetId); @Override int countUnread(Authorization authorization);  }