X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Frhynodge%2Ffilters%2Fwebpages%2Fsavoy%2FMovieExtractorTest.java;h=11e4a307458888f80f9d98530f2375cc09688338;hb=139383cae79cc825256f0a1693fea355f556b826;hp=2b5988e5645843c3dc5c61cb0d7d7946b8b94872;hpb=344c25bffd290586dbbb3f0d2b67e36308d6cd57;p=rhynodge.git diff --git a/src/test/java/net/pterodactylus/rhynodge/filters/webpages/savoy/MovieExtractorTest.java b/src/test/java/net/pterodactylus/rhynodge/filters/webpages/savoy/MovieExtractorTest.java index 2b5988e..11e4a30 100644 --- a/src/test/java/net/pterodactylus/rhynodge/filters/webpages/savoy/MovieExtractorTest.java +++ b/src/test/java/net/pterodactylus/rhynodge/filters/webpages/savoy/MovieExtractorTest.java @@ -161,19 +161,19 @@ public class MovieExtractorTest { return new TypeSafeDiagnosingMatcher() { @Override protected boolean matchesSafely(Movie movie, Description mismatchDescription) { - if (!movie.getName().equals(name)) { - mismatchDescription.appendText("movie is named ").appendValue(movie.getName()); + if (!movie.name.equals(name)) { + mismatchDescription.appendText("movie is named ").appendValue(movie.name); return false; } - if (!movie.getImageUrl().equals(imageUrl)) { - mismatchDescription.appendText("image URL is ").appendValue(movie.getImageUrl()); + if (!movie.imageUrl.equals(imageUrl)) { + mismatchDescription.appendText("image URL is ").appendValue(movie.imageUrl); return false; } - if (!descriptionMatcher.matches(movie.getDescription())) { - descriptionMatcher.describeMismatch(movie.getDescription(), mismatchDescription); + if (!descriptionMatcher.matches(movie.description)) { + descriptionMatcher.describeMismatch(movie.description, mismatchDescription); return false; } - List performances = new ArrayList<>(movie.getPerformances()); + List performances = new ArrayList<>(movie.performances); if (performances.size() != presentationTimesTypesAndLinks.length) { mismatchDescription.appendText("has ").appendValue(performances.size()).appendText(" presentations"); return false;