Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
w3stling committed Aug 14, 2023
1 parent 3f54528 commit 87a56cc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ void rssWorldOfTank() throws IOException {
assertThat(channel.getDescription(), anything());
assertThat(channel.getLanguage(), isPresentAndIs("en"));
assertThat(channel.getLink(), is("https://worldoftanks.eu/en/news/"));
assertThat(channel.getPubDate(), isPresent());
assertThat(channel.getPubDateZonedDateTime(), isPresent());
assertThat(channel.getImage(), isPresent());
assertThat(channel.getImage().map(Image::getTitle).orElse(null), containsString("World of Tanks"));
assertThat(channel.getImage().map(Image::getLink).orElse(null), is("https://worldoftanks.eu/en/news/"));
Expand Down Expand Up @@ -466,6 +468,7 @@ void httpClient() throws IOException, KeyManagementException, NoSuchAlgorithmExc
assertThat(channel.getCopyright(), isEmpty());
assertThat(channel.getGenerator(), isEmpty());
assertThat(channel.getLastBuildDate(), isPresent());
assertThat(channel.getLastBuildDateZonedDateTime(), isPresent());

// Validate item
assertNotNull(item);
Expand All @@ -474,6 +477,7 @@ void httpClient() throws IOException, KeyManagementException, NoSuchAlgorithmExc
assertThat(item.getTitle(), isPresentAnd(not(emptyString())));
assertThat(item.getDescription(), anyOf(isEmpty(), isPresentAnd(not(emptyString()))));
assertThat(item.getPubDate(), isPresent());
assertThat(item.getPubDateZonedDateTime(), isPresent());
assertThat(item.getLink(), isPresent());
}
}
Expand Down

0 comments on commit 87a56cc

Please sign in to comment.