Happy New Year 2014
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
/** * @author Barista */ public class Wishes { @Test public void thisNewYearShouldBeAsFollows() { // given final Year newYear = new Year.Builder(2014) .betterThenPrevious() .withManyJavaConferences() .withInterestingJUGsMeetingsAndWorkshops() .build(); // when for (final Day day : newYear.days()) { // then assertThat(day, is(instanceOf(HappyDay.class))); assertThat(day, is(efficient().and(productive()))); assertThat(during(day), isTimeCodingJava(greaterThan(3, HOURS))); assertThat(theEnd(of(day)), allOf(tests, are(GREEN))); } } } |
