From 87a56cc5456762ec25eff5369f2cbb76ba3186ef Mon Sep 17 00:00:00 2001 From: w3stling Date: Mon, 14 Aug 2023 21:50:20 +0200 Subject: [PATCH] Updated tests --- .../integrationtest/RssReaderIntegrationTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/com/apptasticsoftware/integrationtest/RssReaderIntegrationTest.java b/src/test/java/com/apptasticsoftware/integrationtest/RssReaderIntegrationTest.java index 4c68c3f..7c41460 100644 --- a/src/test/java/com/apptasticsoftware/integrationtest/RssReaderIntegrationTest.java +++ b/src/test/java/com/apptasticsoftware/integrationtest/RssReaderIntegrationTest.java @@ -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/")); @@ -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); @@ -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()); } }