@Test public void testbuildJson() { sut.convertFeedCountToJSON(frc); }
protected JSONObject convertFeedCountToJSON(final FeedReaderUrlCount inFeed) { JSONObject jsonReco = new JSONObject(); jsonReco.put(TITLE_KEY, inFeed.getFeedTitle()); jsonReco.put(URL_KEY, inFeed.getUrl()); jsonReco.put("COUNT", inFeed.getCount()); return jsonReco; }
FeedReaderCollectionResource extends FeedReaderResource { protected JSONObject convertFeedCountToJSON(final FeedReaderUrlCount inFeed) { JSONObject jsonReco = new JSONObject(); jsonReco.put(TITLE_KEY, inFeed.getFeedTitle()); jsonReco.put(URL_KEY, inFeed.getUrl()); jsonReco.put("COUNT", inFeed.getCount()); return jsonReco; } }
FeedReaderCollectionResource extends FeedReaderResource { protected JSONObject convertFeedCountToJSON(final FeedReaderUrlCount inFeed) { JSONObject jsonReco = new JSONObject(); jsonReco.put(TITLE_KEY, inFeed.getFeedTitle()); jsonReco.put(URL_KEY, inFeed.getUrl()); jsonReco.put("COUNT", inFeed.getCount()); return jsonReco; } protected  FeedReaderCollectionResource(); }
FeedReaderCollectionResource extends FeedReaderResource { protected JSONObject convertFeedCountToJSON(final FeedReaderUrlCount inFeed) { JSONObject jsonReco = new JSONObject(); jsonReco.put(TITLE_KEY, inFeed.getFeedTitle()); jsonReco.put(URL_KEY, inFeed.getUrl()); jsonReco.put("COUNT", inFeed.getCount()); return jsonReco; } protected  FeedReaderCollectionResource(); @Override Representation represent(final Variant variant); @Override void acceptRepresentation(final Representation entity); }
FeedReaderCollectionResource extends FeedReaderResource { protected JSONObject convertFeedCountToJSON(final FeedReaderUrlCount inFeed) { JSONObject jsonReco = new JSONObject(); jsonReco.put(TITLE_KEY, inFeed.getFeedTitle()); jsonReco.put(URL_KEY, inFeed.getUrl()); jsonReco.put("COUNT", inFeed.getCount()); return jsonReco; } protected  FeedReaderCollectionResource(); @Override Representation represent(final Variant variant); @Override void acceptRepresentation(final Representation entity);  }