Просмотр исходного кода

phone-number: add hint to @Ignore annotations

morrme 9 лет назад
Родитель
Сommit
3960b99fef
1 измененных файлов: 9 добавлений и 9 удалений
  1. 9
    9
      exercises/phone-number/src/test/java/PhoneNumberTest.java

+ 9
- 9
exercises/phone-number/src/test/java/PhoneNumberTest.java Просмотреть файл

@@ -25,7 +25,7 @@ public class PhoneNumberTest {
25 25
         );
26 26
     }
27 27
 
28
-    @Ignore
28
+    @Ignore("Remove to run test")
29 29
     @Test
30 30
     public void cleansNumberWithDots() {
31 31
         final String expectedNumber = "1234567890";
@@ -36,7 +36,7 @@ public class PhoneNumberTest {
36 36
         );
37 37
     }
38 38
 
39
-    @Ignore
39
+    @Ignore("Remove to run test")
40 40
     @Test
41 41
     public void cleansNumberWithMultipleSpaces() {
42 42
         final String expectedNumber = "1234567890";
@@ -47,7 +47,7 @@ public class PhoneNumberTest {
47 47
         );
48 48
     }
49 49
 
50
-    @Ignore
50
+    @Ignore("Remove to run test")
51 51
     @Test
52 52
     public void invalidWhen9Digits() {
53 53
         expectedException.expect(IllegalArgumentException.class);
@@ -55,7 +55,7 @@ public class PhoneNumberTest {
55 55
         new PhoneNumber("123456789");
56 56
     }
57 57
 
58
-    @Ignore
58
+    @Ignore("Remove to run test")
59 59
     @Test
60 60
     public void invalidWhen11Digits() {
61 61
         expectedException.expect(IllegalArgumentException.class);
@@ -63,7 +63,7 @@ public class PhoneNumberTest {
63 63
         new PhoneNumber("21234567890");
64 64
     }
65 65
 
66
-    @Ignore
66
+    @Ignore("Remove to run test")
67 67
     @Test
68 68
     public void validWhen11DigitsAndFirstIs1() {
69 69
         final String expectedNumber = "1234567890";
@@ -74,7 +74,7 @@ public class PhoneNumberTest {
74 74
         );
75 75
     }
76 76
 
77
-    @Ignore
77
+    @Ignore("Remove to run test")
78 78
     @Test
79 79
     public void invalidWhen12Digits() {
80 80
         expectedException.expect(IllegalArgumentException.class);
@@ -82,7 +82,7 @@ public class PhoneNumberTest {
82 82
         new PhoneNumber("321234567890");
83 83
     }
84 84
 
85
-    @Ignore
85
+    @Ignore("Remove to run test")
86 86
     @Test
87 87
     public void invalidWithLetters() {
88 88
         expectedException.expect(IllegalArgumentException.class);
@@ -90,7 +90,7 @@ public class PhoneNumberTest {
90 90
         new PhoneNumber("123-abc-7890");
91 91
     }
92 92
 
93
-    @Ignore
93
+    @Ignore("Remove to run test")
94 94
     @Test
95 95
     public void invalidWithPunctuation() {
96 96
         expectedException.expect(IllegalArgumentException.class);
@@ -98,7 +98,7 @@ public class PhoneNumberTest {
98 98
         new PhoneNumber("123-@:!-7890");
99 99
     }
100 100
 
101
-    @Ignore
101
+    @Ignore("Remove to run test")
102 102
     @Test
103 103
     public void invalidWithRightNumberOfDigitsButLettersMixedIn() {
104 104
         expectedException.expect(IllegalArgumentException.class);