Exemplo n.º 1
0
  protected void _testItem(int i) throws Exception {
    super._testItem(i);
    List items = getCachedSyndFeed().getEntries();
    SyndEntry entry = (SyndEntry) items.get(i);

    assertProperty(entry.getTitle(), "channel.item[" + i + "].title");
    assertProperty(entry.getLink(), "channel.item[" + i + "].link");
    assertProperty(entry.getDescription().getValue(), "channel.item[" + i + "].description");
    _testCategories(entry.getCategories(), "channel.item[" + i + "]");
    _testEnclosures(entry.getEnclosures(), "channel.item[" + i + "]");
  }
Exemplo n.º 2
0
  @Override
  protected void testItem(final int i) throws Exception {
    super.testItem(i);
    final List<SyndEntry> items = this.getCachedSyndFeed().getEntries();
    final SyndEntry entry = items.get(i);

    assertProperty(entry.getTitle(), "channel.item[" + i + "].title");
    assertProperty(entry.getLink(), "channel.item[" + i + "].link");
    assertProperty(entry.getDescription().getValue(), "channel.item[" + i + "].description");
    testCategories(entry.getCategories(), "channel.item[" + i + "]");
    testEnclosures(entry.getEnclosures(), "channel.item[" + i + "]");
  }