File tree Expand file tree Collapse file tree
exercises/concept/bird-watcher/src/test/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,11 +43,16 @@ public void itTestGetToday() {
4343 @ Tag ("task:3" )
4444 @ DisplayName ("The incrementTodaysCount method correctly increments today's counts" )
4545 public void itIncrementTodaysCount () {
46- int firstSixDaysBeforeIncrement = birdWatcher .getCountForFirstDays (6 );
4746 birdWatcher .incrementTodaysCount ();
48- int firstSixDaysAfterIncrement = birdWatcher .getCountForFirstDays (6 );
4947 assertThat (birdWatcher .getToday ()).isEqualTo (TODAY + 1 );
50- assertThat (firstSixDaysAfterIncrement ).isEqualTo (firstSixDaysBeforeIncrement );
48+ }
49+
50+ @ Test
51+ @ Tag ("task:3" )
52+ @ DisplayName ("The incrementTodaysCount does not change count for other days" )
53+ public void itIncrementDoesNotChangeCountForOtherDays () {
54+ birdWatcher .incrementTodaysCount ();
55+ assertThat (birdWatcher .getCountForFirstDays (6 )).isEqualTo (DAY1 + DAY2 + DAY3 + DAY4 + DAY5 + DAY6 );
5156 }
5257
5358 @ Test
You can’t perform that action at this time.
0 commit comments