Przeglądaj źródła

Merge pull request #492 from morrme/ig12d

twelve-days: add hint to @Ignore annotations
FridaTveit 9 lat temu
rodzic
commit
2abb232099

+ 13
- 13
exercises/twelve-days/src/test/java/TwelveDaysTest.java Wyświetl plik

19
         assertEquals(expectedVerseOne, twelveDays.verse(1));
19
         assertEquals(expectedVerseOne, twelveDays.verse(1));
20
     }
20
     }
21
 
21
 
22
-    @Ignore
22
+    @Ignore("Remove to run test")
23
     @Test
23
     @Test
24
     public void testVerseTwo() {
24
     public void testVerseTwo() {
25
         String expectedVerseTwo = "On the second day of Christmas my true love gave to me, two Turtle Doves, " +
25
         String expectedVerseTwo = "On the second day of Christmas my true love gave to me, two Turtle Doves, " +
27
         assertEquals(expectedVerseTwo, twelveDays.verse(2));
27
         assertEquals(expectedVerseTwo, twelveDays.verse(2));
28
     }
28
     }
29
 
29
 
30
-    @Ignore
30
+    @Ignore("Remove to run test")
31
     @Test
31
     @Test
32
     public void testVerseThree() {
32
     public void testVerseThree() {
33
         String expectedVerseThree = "On the third day of Christmas my true love gave to me, three French Hens, " +
33
         String expectedVerseThree = "On the third day of Christmas my true love gave to me, three French Hens, " +
35
         assertEquals(expectedVerseThree, twelveDays.verse(3));
35
         assertEquals(expectedVerseThree, twelveDays.verse(3));
36
     }
36
     }
37
 
37
 
38
-    @Ignore
38
+    @Ignore("Remove to run test")
39
     @Test
39
     @Test
40
     public void testVerseFour() {
40
     public void testVerseFour() {
41
         String expectedVerseFour = "On the fourth day of Christmas my true love gave to me, four Calling Birds, " +
41
         String expectedVerseFour = "On the fourth day of Christmas my true love gave to me, four Calling Birds, " +
43
         assertEquals(expectedVerseFour, twelveDays.verse(4));
43
         assertEquals(expectedVerseFour, twelveDays.verse(4));
44
     }
44
     }
45
 
45
 
46
-    @Ignore
46
+    @Ignore("Remove to run test")
47
     @Test
47
     @Test
48
     public void testVerseFive() {
48
     public void testVerseFive() {
49
         String expectedVerseFive = "On the fifth day of Christmas my true love gave to me, five Gold Rings, " +
49
         String expectedVerseFive = "On the fifth day of Christmas my true love gave to me, five Gold Rings, " +
51
         assertEquals(expectedVerseFive, twelveDays.verse(5));
51
         assertEquals(expectedVerseFive, twelveDays.verse(5));
52
     }
52
     }
53
 
53
 
54
-    @Ignore
54
+    @Ignore("Remove to run test")
55
     @Test
55
     @Test
56
     public void testVerseSix() {
56
     public void testVerseSix() {
57
         String expectedVerseSix = "On the sixth day of Christmas my true love gave to me, six Geese-a-Laying, " +
57
         String expectedVerseSix = "On the sixth day of Christmas my true love gave to me, six Geese-a-Laying, " +
60
         assertEquals(expectedVerseSix, twelveDays.verse(6));
60
         assertEquals(expectedVerseSix, twelveDays.verse(6));
61
     }
61
     }
62
 
62
 
63
-    @Ignore
63
+    @Ignore("Remove to run test")
64
     @Test
64
     @Test
65
     public void testVerseSeven() {
65
     public void testVerseSeven() {
66
         String expectedVerseSeven = "On the seventh day of Christmas my true love gave to me, " +
66
         String expectedVerseSeven = "On the seventh day of Christmas my true love gave to me, " +
69
         assertEquals(expectedVerseSeven, twelveDays.verse(7));
69
         assertEquals(expectedVerseSeven, twelveDays.verse(7));
70
     }
70
     }
71
 
71
 
72
-    @Ignore
72
+    @Ignore("Remove to run test")
73
     @Test
73
     @Test
74
     public void testVerseEight() {
74
     public void testVerseEight() {
75
         String expectedVerseEight = "On the eighth day of Christmas my true love gave to me, eight Maids-a-Milking," +
75
         String expectedVerseEight = "On the eighth day of Christmas my true love gave to me, eight Maids-a-Milking," +
78
         assertEquals(expectedVerseEight, twelveDays.verse(8));
78
         assertEquals(expectedVerseEight, twelveDays.verse(8));
79
     }
79
     }
80
 
80
 
81
-    @Ignore
81
+    @Ignore("Remove to run test")
82
     @Test
82
     @Test
83
     public void testVerseNine() {
83
     public void testVerseNine() {
84
         String expectedVerseNine = "On the ninth day of Christmas my true love gave to me, nine Ladies Dancing, " +
84
         String expectedVerseNine = "On the ninth day of Christmas my true love gave to me, nine Ladies Dancing, " +
87
         assertEquals(expectedVerseNine, twelveDays.verse(9));
87
         assertEquals(expectedVerseNine, twelveDays.verse(9));
88
     }
88
     }
89
 
89
 
90
-    @Ignore
90
+    @Ignore("Remove to run test")
91
     @Test
91
     @Test
92
     public void testVerseTen() {
92
     public void testVerseTen() {
93
         String expectedVerseTen = "On the tenth day of Christmas my true love gave to me, ten Lords-a-Leaping, " +
93
         String expectedVerseTen = "On the tenth day of Christmas my true love gave to me, ten Lords-a-Leaping, " +
97
         assertEquals(expectedVerseTen, twelveDays.verse(10));
97
         assertEquals(expectedVerseTen, twelveDays.verse(10));
98
     }
98
     }
99
 
99
 
100
-    @Ignore
100
+    @Ignore("Remove to run test")
101
     @Test
101
     @Test
102
     public void testVerseEleven() {
102
     public void testVerseEleven() {
103
         String expectedVerseEleven = "On the eleventh day of Christmas my true love gave to me, " +
103
         String expectedVerseEleven = "On the eleventh day of Christmas my true love gave to me, " +
107
         assertEquals(expectedVerseEleven, twelveDays.verse(11));
107
         assertEquals(expectedVerseEleven, twelveDays.verse(11));
108
     }
108
     }
109
 
109
 
110
-    @Ignore
110
+    @Ignore("Remove to run test")
111
     @Test
111
     @Test
112
     public void testVerseTwelve() {
112
     public void testVerseTwelve() {
113
         String expectedVerseTwelve = "On the twelfth day of Christmas my true love gave to me, " +
113
         String expectedVerseTwelve = "On the twelfth day of Christmas my true love gave to me, " +
117
         assertEquals(expectedVerseTwelve, twelveDays.verse(12));
117
         assertEquals(expectedVerseTwelve, twelveDays.verse(12));
118
     }
118
     }
119
 
119
 
120
-    @Ignore
120
+    @Ignore("Remove to run test")
121
     @Test
121
     @Test
122
     public void testMultipleVerses() {
122
     public void testMultipleVerses() {
123
         String expectedVerseOneToThree = "On the first day of Christmas my true love gave to me, " +
123
         String expectedVerseOneToThree = "On the first day of Christmas my true love gave to me, " +
129
         assertEquals(expectedVerseOneToThree, twelveDays.verses(1, 3));
129
         assertEquals(expectedVerseOneToThree, twelveDays.verses(1, 3));
130
     }
130
     }
131
 
131
 
132
-    @Ignore
132
+    @Ignore("Remove to run test")
133
     @Test
133
     @Test
134
     public void testSingWholeSong() {
134
     public void testSingWholeSong() {
135
         String expectedSong = "On the first day of Christmas my true love gave to me, a Partridge in a Pear Tree.\n" +
135
         String expectedSong = "On the first day of Christmas my true love gave to me, a Partridge in a Pear Tree.\n" +