Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
w3stling committed Nov 9, 2024
1 parent 75eb892 commit 8d9ec3d
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
import static com.github.npathai.hamcrestopt.OptionalMatchers.isEmpty;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.emptyString;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.*;
import static org.junit.jupiter.api.Assertions.*;

Expand Down Expand Up @@ -217,11 +215,11 @@ void rssBreakit() throws IOException {
// Validate channel
Channel channel = item.getChannel();
assertNotNull(channel);
assertThat(channel.getTitle(), is("breakit.se"));
assertThat(channel.getTitle(), containsStringIgnoringCase("breakit"));
assertThat(channel.getDescription(), is("Breakit är Sveriges nyhetssajt om techbolag och startups."));
assertThat(channel.getLanguage(), isPresentAndIs("sv"));
assertThat(channel.getLink(), is("http://breakit.se"));
assertThat(channel.getCopyright(), isEmpty());
assertThat(channel.getLanguage(), isPresentAnd(containsStringIgnoringCase("sv")));
assertThat(channel.getLink(), is("https://www.breakit.se"));
assertThat(channel.getCopyright(), isPresentAndIs("© Breaking Media AB"));
assertThat(channel.getGenerator(), isEmpty());
assertThat(channel.getLastBuildDate(), isPresentAnd(not(emptyString())));

Expand Down

0 comments on commit 8d9ec3d

Please sign in to comment.