@@ -18,7 +18,7 @@ public void itTestGetLastWeek() {
1818 @ DisplayName ("The getToday method correctly returns today's counts" )
1919 public void itTestGetToday () {
2020 int [] counts = new int [] {8 , 8 , 9 , 5 , 4 , 7 , 10 };
21- BirdWatched birdWatcher = new BirdWatcher (counts );
21+ BirdWatcher birdWatcher = new BirdWatcher (counts );
2222 assertThat (birdWatcher .getToday ()).isEqualTo (10 );
2323 }
2424
@@ -27,7 +27,7 @@ public void itTestGetToday() {
2727 @ DisplayName ("The incrementTodaysCount method correctly increments today's counts" )
2828 public void itIncrementTodaysCount () {
2929 int [] counts = new int [] {8 , 8 , 9 , 2 , 1 , 6 , 4 };
30- BirdWatched birdWatcher = new BirdWatcher (counts );
30+ BirdWatcher birdWatcher = new BirdWatcher (counts );
3131 birdWatcher .incrementTodaysCount ();
3232 assertThat (birdWatcher .getToday ()).isEqualTo (5 );
3333 }
@@ -37,7 +37,7 @@ public void itIncrementTodaysCount() {
3737 @ DisplayName ("The incrementTodaysCount does not change count for other days" )
3838 public void itIncrementDoesNotChangeCountForOtherDays () {
3939 int [] counts = new int [] {5 , 1 , 0 , 4 , 2 , 3 , 0 };
40- BirdWatched birdWatcher = new BirdWatcher (counts );
40+ BirdWatcher birdWatcher = new BirdWatcher (counts );
4141 birdWatcher .incrementTodaysCount ();
4242 assertThat (birdWatcher .getCountForFirstDays (6 )).isEqualTo (15 );
4343 }
@@ -47,7 +47,7 @@ public void itIncrementDoesNotChangeCountForOtherDays() {
4747 @ DisplayName ("The hasDayWithoutBirds method returns true when at least one day had no visits" )
4848 public void itHasDayWithoutBirds () {
4949 int [] counts = new int [] {5 , 5 , 4 , 0 , 7 , 6 , 7 };
50- BirdWatched birdWatcher = new BirdWatcher (counts );
50+ BirdWatcher birdWatcher = new BirdWatcher (counts );
5151 assertThat (birdWatcher .hasDayWithoutBirds ()).isTrue ();
5252 }
5353
@@ -56,7 +56,7 @@ public void itHasDayWithoutBirds() {
5656 @ DisplayName ("The hasDayWithoutBirds method returns false when no day had zero visits" )
5757 public void itShouldNotHaveDaysWithoutBirds () {
5858 int [] counts = new int [] {4 , 5 , 9 , 10 , 9 , 4 , 3 };
59- BirdWatched birdWatcher = new BirdWatcher (counts );
59+ BirdWatcher birdWatcher = new BirdWatcher (counts );
6060 assertThat (birdWatcher .hasDayWithoutBirds ()).isFalse ();
6161 }
6262
@@ -65,7 +65,7 @@ public void itShouldNotHaveDaysWithoutBirds() {
6565 @ DisplayName ("The hasDayWithoutBirds method returns true if the last day has zero visits" )
6666 public void itHasLastDayWithoutBirds () {
6767 int [] counts = new int [] {1 , 2 , 5 , 3 , 7 , 8 , 0 };
68- BirdWatched birdWatcher = new BirdWatcher (counts );
68+ BirdWatcher birdWatcher = new BirdWatcher (counts );
6969 assertThat (birdWatcher .hasDayWithoutBirds ()).isTrue ();
7070 }
7171
@@ -74,7 +74,7 @@ public void itHasLastDayWithoutBirds() {
7474 @ DisplayName ("The getCountForFirstDays method returns correct visits' count for given number of days" )
7575 public void itTestGetCountForFirstDays () {
7676 int [] counts = new int [] {5 , 9 , 12 , 6 , 8 , 8 , 17 };
77- BirdWatched birdWatcher = new BirdWatcher (counts );
77+ BirdWatcher birdWatcher = new BirdWatcher (counts );
7878 assertThat (birdWatcher .getCountForFirstDays (4 )).isEqualTo (32 );
7979 }
8080
@@ -83,7 +83,7 @@ public void itTestGetCountForFirstDays() {
8383 @ DisplayName ("The getCountForFirstDays method returns overall count when number of days is higher than array size" )
8484 public void itTestGetCountForMoreDaysThanTheArraySize () {
8585 int [] counts = new int [] {5 , 9 , 12 , 6 , 8 , 8 , 17 };
86- BirdWatched birdWatcher = new BirdWatcher (counts );
86+ BirdWatcher birdWatcher = new BirdWatcher (counts );
8787 assertThat (birdWatcher .getCountForFirstDays (65 )).isEqualTo ();
8888 }
8989
@@ -92,7 +92,7 @@ public void itTestGetCountForMoreDaysThanTheArraySize() {
9292 @ DisplayName ("The getBusyDays method returns the correct count of busy days" )
9393 public void itTestGetCountForBusyDays () {
9494 int [] counts = new int [] {4 , 9 , 5 , 7 , 8 , 8 , 2 };
95- BirdWatched birdWatcher = new BirdWatcher (counts );
95+ BirdWatcher birdWatcher = new BirdWatcher (counts );
9696 assertThat (birdWatcher .getBusyDays ()).isEqualTo (5 );
9797 }
9898
@@ -101,7 +101,7 @@ public void itTestGetCountForBusyDays() {
101101 @ DisplayName ("The getBusyDays method correctly returns zero in case of no busy days" )
102102 public void itShouldNotHaveBusyDays () {
103103 int [] counts = new int [] {1 , 2 , 3 , 3 , 2 , 1 , 4 };
104- BirdWatched birdWatcher = new BirdWatcher (counts );
104+ BirdWatcher birdWatcher = new BirdWatcher (counts );
105105 assertThat (birdWatcher .getBusyDays ()).isEqualTo (0 );
106106 }
107107}
0 commit comments