瀏覽代碼

Merge pull request #450 from FridaTveit/AcronymAddIgnoreHint

acronym: add hint to @Ignore annotations
John Ryan 9 年之前
父節點
當前提交
229ec271de
共有 1 個檔案被更改,包括 7 行新增7 行删除
  1. 7
    7
      exercises/acronym/src/test/java/AcronymTest.java

+ 7
- 7
exercises/acronym/src/test/java/AcronymTest.java 查看文件

12
         assertEquals(expected, new Acronym(phrase).get());
12
         assertEquals(expected, new Acronym(phrase).get());
13
     }
13
     }
14
 
14
 
15
-    @Ignore
15
+    @Ignore("Remove to run test")
16
     @Test
16
     @Test
17
     public void fromOtherTitleCasedPhrases() {
17
     public void fromOtherTitleCasedPhrases() {
18
         final String phrase = "Ruby on Rails";
18
         final String phrase = "Ruby on Rails";
20
         assertEquals(expected, new Acronym(phrase).get());
20
         assertEquals(expected, new Acronym(phrase).get());
21
     }
21
     }
22
 
22
 
23
-    @Ignore
23
+    @Ignore("Remove to run test")
24
     @Test
24
     @Test
25
     public void fromInconsistentlyCasedPhrases() {
25
     public void fromInconsistentlyCasedPhrases() {
26
         final String phrase = "HyperText Markup Language";
26
         final String phrase = "HyperText Markup Language";
28
         assertEquals(expected, new Acronym(phrase).get());
28
         assertEquals(expected, new Acronym(phrase).get());
29
     }
29
     }
30
 
30
 
31
-    @Ignore
31
+    @Ignore("Remove to run test")
32
     @Test
32
     @Test
33
     public void fromPhrasesWithPunctuation() {
33
     public void fromPhrasesWithPunctuation() {
34
         final String phrase = "First In, First Out";
34
         final String phrase = "First In, First Out";
36
         assertEquals(expected, new Acronym(phrase).get());
36
         assertEquals(expected, new Acronym(phrase).get());
37
     }
37
     }
38
 
38
 
39
-    @Ignore
39
+    @Ignore("Remove to run test")
40
     @Test
40
     @Test
41
     public void fromOtherPhrasesWithPunctuation() {
41
     public void fromOtherPhrasesWithPunctuation() {
42
         final String phrase = "PHP: Hypertext Preprocessor";
42
         final String phrase = "PHP: Hypertext Preprocessor";
44
         assertEquals(expected, new Acronym(phrase).get());
44
         assertEquals(expected, new Acronym(phrase).get());
45
     }
45
     }
46
 
46
 
47
-    @Ignore
47
+    @Ignore("Remove to run test")
48
     @Test
48
     @Test
49
     public void fromPhrasesWithNonAcronymAllCapsWord() {
49
     public void fromPhrasesWithNonAcronymAllCapsWord() {
50
         final String phrase = "GNU Image Manipulation Program";
50
         final String phrase = "GNU Image Manipulation Program";
52
         assertEquals(expected, new Acronym(phrase).get());
52
         assertEquals(expected, new Acronym(phrase).get());
53
     }
53
     }
54
 
54
 
55
-    @Ignore
55
+    @Ignore("Remove to run test")
56
     @Test
56
     @Test
57
     public void fromPhrasesWithPunctuationAndSentenceCasing() {
57
     public void fromPhrasesWithPunctuationAndSentenceCasing() {
58
         final String phrase = "Complementary metal-oxide semiconductor";
58
         final String phrase = "Complementary metal-oxide semiconductor";
60
         assertEquals(expected, new Acronym(phrase).get());
60
         assertEquals(expected, new Acronym(phrase).get());
61
     }
61
     }
62
 
62
 
63
-    @Ignore
63
+    @Ignore("Remove to run test")
64
     @Test
64
     @Test
65
     public void fromPhraseWithSingleLetterWord() {
65
     public void fromPhraseWithSingleLetterWord() {
66
         final String phrase = "Cat in a Hat";
66
         final String phrase = "Cat in a Hat";