I wish you to make this test green in 2023!
class Year2023Test {
private static final String LETS_TALK_ABOUT_JAVA_URL
= "http://letstalkaboutjava.blogspot.com/";
private static final String NEWSLETTER_URL
= "https://www.subscribepage.com/lets_talk_about_java";
private YearRepository yearRepository;
private BlogRepository blogRepository;
@Test
void shouldFulfillAllTheWishes() {
Blog letsTalkAboutJava = blogRepository.find(LETS_TALK_ABOUT_JAVA_URL);
Year year2023 = yearRepository.find(2023);
Wishes wishes = Wishes
.from(letsTalkAboutJava)
.to(letsTalkAboutJava.readers().YOU())
.wish(Opportunities.great().and().challenging())
.wish(Growth
.thanksTo(letsTalkAboutJava.newsletter(NEWSLETTER_URL))
.thanksTo(letsTalkAboutJava.articles())
.thanksTo(letsTalkAboutJava.books().recommendations())
)
.wish(Happieness.aLotOf())
.wish(Fun.aLotOf())
.make();
boolean actual = year2023.areFulfilled(wishes);
assertThat(actual).isTrue();
}
}
No comments:
Post a Comment