Przeglądaj źródła

ClockAddTest : add hint to @Ignore annotations

#445
Melany Diaz 9 lat temu
rodzic
commit
428938ce76
1 zmienionych plików z 16 dodań i 16 usunięć
  1. 16
    16
      exercises/clock/src/test/java/ClockAddTest.java

+ 16
- 16
exercises/clock/src/test/java/ClockAddTest.java Wyświetl plik

@@ -5,7 +5,7 @@ import static org.junit.Assert.assertEquals;
5 5
 
6 6
 public class ClockAddTest {
7 7
 
8
-    @Ignore
8
+    @Ignore("Remove to run test")
9 9
     @Test
10 10
     public void addMinutes() {
11 11
         Clock clock = new Clock(10, 0);
@@ -13,7 +13,7 @@ public class ClockAddTest {
13 13
         assertEquals("10:03", clock.toString());
14 14
     }
15 15
 
16
-    @Ignore
16
+    @Ignore("Remove to run test")
17 17
     @Test
18 18
     public void addNoMinutes() {
19 19
         Clock clock = new Clock(6, 41);
@@ -21,7 +21,7 @@ public class ClockAddTest {
21 21
         assertEquals("06:41", clock.toString());
22 22
     }
23 23
 
24
-    @Ignore
24
+    @Ignore("Remove to run test")
25 25
     @Test
26 26
     public void addToNextHour() {
27 27
         Clock clock = new Clock(0, 45);
@@ -29,7 +29,7 @@ public class ClockAddTest {
29 29
         assertEquals("01:25", clock.toString());
30 30
     }
31 31
 
32
-    @Ignore
32
+    @Ignore("Remove to run test")
33 33
     @Test
34 34
     public void addMoreThanOneHour() {
35 35
         Clock clock = new Clock(10, 0);
@@ -37,7 +37,7 @@ public class ClockAddTest {
37 37
         assertEquals("11:01", clock.toString());
38 38
     }
39 39
 
40
-    @Ignore
40
+    @Ignore("Remove to run test")
41 41
     @Test
42 42
     public void addMoreThanTwoHoursWithCarry() {
43 43
         Clock clock = new Clock(0, 45);
@@ -45,7 +45,7 @@ public class ClockAddTest {
45 45
         assertEquals("03:25", clock.toString());
46 46
     }
47 47
 
48
-    @Ignore
48
+    @Ignore("Remove to run test")
49 49
     @Test
50 50
     public void addAcrossMidnight() {
51 51
         Clock clock = new Clock(23, 59);
@@ -53,7 +53,7 @@ public class ClockAddTest {
53 53
         assertEquals("00:01", clock.toString());
54 54
     }
55 55
 
56
-    @Ignore
56
+    @Ignore("Remove to run test")
57 57
     @Test
58 58
     public void addMoreThanOneDay() {
59 59
         Clock clock = new Clock(5, 32);
@@ -61,7 +61,7 @@ public class ClockAddTest {
61 61
         assertEquals("06:32", clock.toString());
62 62
     }
63 63
 
64
-    @Ignore
64
+    @Ignore("Remove to run test")
65 65
     @Test
66 66
     public void addMoreThanTwoDays() {
67 67
         Clock clock = new Clock(1, 1);
@@ -69,7 +69,7 @@ public class ClockAddTest {
69 69
         assertEquals("11:21", clock.toString());
70 70
     }
71 71
 
72
-    @Ignore
72
+    @Ignore("Remove to run test")
73 73
     @Test
74 74
     public void subtractMinutes() {
75 75
         Clock clock = new Clock(10, 3);
@@ -77,7 +77,7 @@ public class ClockAddTest {
77 77
         assertEquals("10:00", clock.toString());
78 78
     }
79 79
 
80
-    @Ignore
80
+    @Ignore("Remove to run test")
81 81
     @Test
82 82
     public void subtractToPreviousHour() {
83 83
         Clock clock = new Clock(10, 3);
@@ -85,7 +85,7 @@ public class ClockAddTest {
85 85
         assertEquals("09:33", clock.toString());
86 86
     }
87 87
 
88
-    @Ignore
88
+    @Ignore("Remove to run test")
89 89
     @Test
90 90
     public void subtractMoreThanAnHour() {
91 91
         Clock clock = new Clock(10, 3);
@@ -93,7 +93,7 @@ public class ClockAddTest {
93 93
         assertEquals("08:53", clock.toString());
94 94
     }
95 95
 
96
-    @Ignore
96
+    @Ignore("Remove to run test")
97 97
     @Test
98 98
     public void subtractAcrossMidnight() {
99 99
         Clock clock = new Clock(0, 3);
@@ -101,7 +101,7 @@ public class ClockAddTest {
101 101
         assertEquals("23:59", clock.toString());
102 102
     }
103 103
 
104
-    @Ignore
104
+    @Ignore("Remove to run test")
105 105
     @Test
106 106
     public void subtractMoreThanTwoHours() {
107 107
         Clock clock = new Clock(0, 0);
@@ -109,7 +109,7 @@ public class ClockAddTest {
109 109
         assertEquals("21:20", clock.toString());
110 110
     }
111 111
 
112
-    @Ignore
112
+    @Ignore("Remove to run test")
113 113
     @Test
114 114
     public void subtractMoreThanTwoHoursWithBorrow() {
115 115
         Clock clock = new Clock(6, 15);
@@ -117,7 +117,7 @@ public class ClockAddTest {
117 117
         assertEquals("03:35", clock.toString());
118 118
     }
119 119
 
120
-    @Ignore
120
+    @Ignore("Remove to run test")
121 121
     @Test
122 122
     public void subtractMoreThanOneDay() {
123 123
         Clock clock = new Clock(5, 32);
@@ -125,7 +125,7 @@ public class ClockAddTest {
125 125
         assertEquals("04:32", clock.toString());
126 126
     }
127 127
 
128
-    @Ignore
128
+    @Ignore("Remove to run test")
129 129
     @Test
130 130
     public void subtractMoreThanTwoDays() {
131 131
         Clock clock = new Clock(2, 20);