Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #584 #630

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ protected SyndEntry createSyndEntry(final Item item, final boolean preserveWireI
comments.setRel("comments");
comments.setHref(item.getComments());
comments.setType("text/html");
syndEntry.getLinks().add(comments);
}

return syndEntry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public void testImageDescription() throws Exception {
assertProperty(this.getCachedSyndFeed().getImage().getDescription(), "channel.image.description");
}

public void testItem() throws Exception {
final List<SyndEntry> items = this.getCachedSyndFeed().getEntries();
for (int i = 0; i < items.size(); i++) {
testItem(i);
}
}

protected void testItem(final int i) throws Exception {
final List<SyndEntry> items = this.getCachedSyndFeed().getEntries();
final SyndEntry entry = items.get(i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected void testItem(final int i) throws Exception {
final SyndEntry entry = items.get(i);

assertProperty(entry.getAuthor(), "channel.item[" + i + "].author");

testUri(entry, i);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ protected void testItem(final int i) throws Exception {
}

protected void testComments(final SyndEntry entry, final int i) throws Exception {
assertProperty(entry.findRelatedLink("comments").getHref(), "rss_0.94.channel.item[" + i + "].comments");
assertProperty(entry.findRelatedLink("comments").getHref(),
"channel.item[" + i + "].comments");
}

}