Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
w3stling committed Sep 14, 2024
1 parent 90f66a4 commit 821312a
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,6 @@ void diDigital() throws IOException {
}
}


@SuppressWarnings("java:S5961")
@Test
void rssWorldOfTank() throws IOException {
RssReader reader = new RssReader();
Expand Down Expand Up @@ -405,10 +403,13 @@ void rssWorldOfTank() throws IOException {
assertThat(item.getDescription(), isPresentAnd(not(emptyString())));
assertThat(item.getPubDate(), isPresentAnd(not(emptyString())));
assertThat(item.getLink(), isPresentAnd(not(emptyString())));
assertThat(item.getEnclosure(), isPresent());
assertThat(item.getEnclosure().get().getUrl(), is(not(emptyString())));
assertThat(item.getEnclosure().get().getType(), is(not(emptyString())));
assertThat(item.getEnclosure().get().getLength(), isPresent());
if (!item.getEnclosures().isEmpty()) {
for (Enclosure enclosure : item.getEnclosures()) {
assertThat(enclosure.getUrl(), is(not(emptyString())));
assertThat(enclosure.getType(), is(not(emptyString())));
assertThat(enclosure.getLength(), isPresent());
}
}
}
}

Expand Down

0 comments on commit 821312a

Please sign in to comment.