|
|
@@ -9,7 +9,7 @@ public class BeerSongTest {
|
|
9
|
9
|
public void singFirstVerse() {
|
|
10
|
10
|
assertEquals("99 bottles of beer on the wall, 99 bottles of beer.\n" +
|
|
11
|
11
|
"Take one down and pass it around, 98 bottles of beer on the wall.\n\n",
|
|
12
|
|
- BeerSong.verse(99));
|
|
|
12
|
+ new BeerSong().verse(99));
|
|
13
|
13
|
}
|
|
14
|
14
|
|
|
15
|
15
|
@Ignore
|
|
|
@@ -17,7 +17,7 @@ public class BeerSongTest {
|
|
17
|
17
|
public void singMiddleVerse() {
|
|
18
|
18
|
assertEquals("44 bottles of beer on the wall, 44 bottles of beer.\n" +
|
|
19
|
19
|
"Take one down and pass it around, 43 bottles of beer on the wall.\n\n",
|
|
20
|
|
- BeerSong.verse(44));
|
|
|
20
|
+ new BeerSong().verse(44));
|
|
21
|
21
|
}
|
|
22
|
22
|
|
|
23
|
23
|
@Ignore
|
|
|
@@ -25,7 +25,7 @@ public class BeerSongTest {
|
|
25
|
25
|
public void singThirdToLastVerse() {
|
|
26
|
26
|
assertEquals("2 bottles of beer on the wall, 2 bottles of beer.\n" +
|
|
27
|
27
|
"Take one down and pass it around, 1 bottle of beer on the wall.\n\n",
|
|
28
|
|
- BeerSong.verse(2));
|
|
|
28
|
+ new BeerSong().verse(2));
|
|
29
|
29
|
}
|
|
30
|
30
|
|
|
31
|
31
|
@Ignore
|
|
|
@@ -33,7 +33,7 @@ public class BeerSongTest {
|
|
33
|
33
|
public void singPenultimateVerse() {
|
|
34
|
34
|
assertEquals("1 bottle of beer on the wall, 1 bottle of beer.\n" +
|
|
35
|
35
|
"Take it down and pass it around, no more bottles of beer on the wall.\n\n",
|
|
36
|
|
- BeerSong.verse(1));
|
|
|
36
|
+ new BeerSong().verse(1));
|
|
37
|
37
|
}
|
|
38
|
38
|
|
|
39
|
39
|
@Ignore
|
|
|
@@ -41,7 +41,7 @@ public class BeerSongTest {
|
|
41
|
41
|
public void singLastVerse() {
|
|
42
|
42
|
assertEquals("No more bottles of beer on the wall, no more bottles of beer.\n" +
|
|
43
|
43
|
"Go to the store and buy some more, 99 bottles of beer on the wall.\n\n",
|
|
44
|
|
- BeerSong.verse(0));
|
|
|
44
|
+ new BeerSong().verse(0));
|
|
45
|
45
|
}
|
|
46
|
46
|
|
|
47
|
47
|
@Ignore
|
|
|
@@ -55,7 +55,7 @@ public class BeerSongTest {
|
|
55
|
55
|
"Take it down and pass it around, no more bottles of beer on the wall.\n\n" +
|
|
56
|
56
|
"No more bottles of beer on the wall, no more bottles of beer.\n" +
|
|
57
|
57
|
"Go to the store and buy some more, 99 bottles of beer on the wall.\n\n",
|
|
58
|
|
- BeerSong.sing(3,0));
|
|
|
58
|
+ new BeerSong().sing(3,0));
|
|
59
|
59
|
}
|
|
60
|
60
|
|
|
61
|
61
|
@Ignore
|
|
|
@@ -161,7 +161,7 @@ public class BeerSongTest {
|
|
161
|
161
|
"2 bottles of beer on the wall, 2 bottles of beer.\nTake one down and pass it around, 1 bottle of beer on the wall.\n\n" +
|
|
162
|
162
|
"1 bottle of beer on the wall, 1 bottle of beer.\nTake it down and pass it around, no more bottles of beer on the wall.\n\n" +
|
|
163
|
163
|
"No more bottles of beer on the wall, no more bottles of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.\n\n",
|
|
164
|
|
- BeerSong.singSong());
|
|
|
164
|
+ new BeerSong().singSong());
|
|
165
|
165
|
}
|
|
166
|
166
|
|
|
167
|
167
|
}
|