Преглед изворни кода

ClockCreationTest : add hint to @Ignore annotations

#445
Melany Diaz пре 9 година
родитељ
комит
c7e309300b
1 измењених фајлова са 18 додато и 18 уклоњено
  1. 18
    18
      exercises/clock/src/test/java/ClockCreationTest.java

+ 18
- 18
exercises/clock/src/test/java/ClockCreationTest.java Прегледај датотеку

10
         assertEquals("08:00", new Clock(8, 0).toString());
10
         assertEquals("08:00", new Clock(8, 0).toString());
11
     }
11
     }
12
 
12
 
13
-    @Ignore
13
+    @Ignore("Remove to run test")
14
     @Test
14
     @Test
15
     public void canPrintTimeWithMinutes() {
15
     public void canPrintTimeWithMinutes() {
16
         assertEquals("11:09", new Clock(11, 9).toString());
16
         assertEquals("11:09", new Clock(11, 9).toString());
17
     }
17
     }
18
 
18
 
19
-    @Ignore
19
+    @Ignore("Remove to run test")
20
     @Test
20
     @Test
21
     public void midnightPrintsAsZero() {
21
     public void midnightPrintsAsZero() {
22
         assertEquals("00:00", new Clock(24, 0).toString());
22
         assertEquals("00:00", new Clock(24, 0).toString());
23
     }
23
     }
24
 
24
 
25
-    @Ignore
25
+    @Ignore("Remove to run test")
26
     @Test
26
     @Test
27
     public void hourRollsOver() {
27
     public void hourRollsOver() {
28
         assertEquals("01:00", new Clock(25, 0).toString());
28
         assertEquals("01:00", new Clock(25, 0).toString());
29
     }
29
     }
30
 
30
 
31
-    @Ignore
31
+    @Ignore("Remove to run test")
32
     @Test
32
     @Test
33
     public void hourRollsOverContinuously() {
33
     public void hourRollsOverContinuously() {
34
         assertEquals("04:00", new Clock(100, 0).toString());
34
         assertEquals("04:00", new Clock(100, 0).toString());
35
     }
35
     }
36
 
36
 
37
-    @Ignore
37
+    @Ignore("Remove to run test")
38
     @Test
38
     @Test
39
     public void sixtyMinutesIsNextHour() {
39
     public void sixtyMinutesIsNextHour() {
40
         assertEquals("02:00", new Clock(1, 60).toString());
40
         assertEquals("02:00", new Clock(1, 60).toString());
41
     }
41
     }
42
 
42
 
43
-    @Ignore
43
+    @Ignore("Remove to run test")
44
     @Test
44
     @Test
45
     public void minutesRollOver() {
45
     public void minutesRollOver() {
46
         assertEquals("02:40", new Clock(0, 160).toString());
46
         assertEquals("02:40", new Clock(0, 160).toString());
47
     }
47
     }
48
 
48
 
49
-    @Ignore
49
+    @Ignore("Remove to run test")
50
     @Test
50
     @Test
51
     public void minutesRollOverContinuously() {
51
     public void minutesRollOverContinuously() {
52
         assertEquals("04:43", new Clock(0, 1723).toString());
52
         assertEquals("04:43", new Clock(0, 1723).toString());
53
     }
53
     }
54
 
54
 
55
-    @Ignore
55
+    @Ignore("Remove to run test")
56
     @Test
56
     @Test
57
     public void hourAndMinutesRollOver() {
57
     public void hourAndMinutesRollOver() {
58
         assertEquals("03:40", new Clock(25, 160).toString());
58
         assertEquals("03:40", new Clock(25, 160).toString());
59
     }
59
     }
60
 
60
 
61
-    @Ignore
61
+    @Ignore("Remove to run test")
62
     @Test
62
     @Test
63
     public void hourAndMinutesRollOverContinuously() {
63
     public void hourAndMinutesRollOverContinuously() {
64
         assertEquals("11:01", new Clock(201, 3001).toString());
64
         assertEquals("11:01", new Clock(201, 3001).toString());
65
     }
65
     }
66
 
66
 
67
-    @Ignore
67
+    @Ignore("Remove to run test")
68
     @Test
68
     @Test
69
     public void hourAndMinutesRollOverToExactlyMidnight() {
69
     public void hourAndMinutesRollOverToExactlyMidnight() {
70
         assertEquals("00:00", new Clock(72, 8640).toString());
70
         assertEquals("00:00", new Clock(72, 8640).toString());
71
     }
71
     }
72
 
72
 
73
-    @Ignore
73
+    @Ignore("Remove to run test")
74
     @Test
74
     @Test
75
     public void negativeHour() {
75
     public void negativeHour() {
76
         assertEquals("23:15", new Clock(-1, 15).toString());
76
         assertEquals("23:15", new Clock(-1, 15).toString());
77
     }
77
     }
78
 
78
 
79
-    @Ignore
79
+    @Ignore("Remove to run test")
80
     @Test
80
     @Test
81
     public void negativeHourRollsOver() {
81
     public void negativeHourRollsOver() {
82
         assertEquals("23:00", new Clock(-25, 0).toString());
82
         assertEquals("23:00", new Clock(-25, 0).toString());
83
     }
83
     }
84
 
84
 
85
-    @Ignore
85
+    @Ignore("Remove to run test")
86
     @Test
86
     @Test
87
     public void negativeHourRollsOverContinuously() {
87
     public void negativeHourRollsOverContinuously() {
88
         assertEquals("05:00", new Clock(-91, 0).toString());
88
         assertEquals("05:00", new Clock(-91, 0).toString());
89
     }
89
     }
90
 
90
 
91
-    @Ignore
91
+    @Ignore("Remove to run test")
92
     @Test
92
     @Test
93
     public void negativeMinutes() {
93
     public void negativeMinutes() {
94
         assertEquals("00:20", new Clock(1, -40).toString());
94
         assertEquals("00:20", new Clock(1, -40).toString());
95
     }
95
     }
96
 
96
 
97
-    @Ignore
97
+    @Ignore("Remove to run test")
98
     @Test
98
     @Test
99
     public void negativeMinutesRollOver() {
99
     public void negativeMinutesRollOver() {
100
         assertEquals("22:20", new Clock(1, -160).toString());
100
         assertEquals("22:20", new Clock(1, -160).toString());
101
     }
101
     }
102
 
102
 
103
-    @Ignore
103
+    @Ignore("Remove to run test")
104
     @Test
104
     @Test
105
     public void negativeMinutesRollOverContinuously() {
105
     public void negativeMinutesRollOverContinuously() {
106
         assertEquals("16:40", new Clock(1, -4820).toString());
106
         assertEquals("16:40", new Clock(1, -4820).toString());
107
     }
107
     }
108
 
108
 
109
-    @Ignore
109
+    @Ignore("Remove to run test")
110
     @Test
110
     @Test
111
     public void negativeHourAndMinutesBothRollOver() {
111
     public void negativeHourAndMinutesBothRollOver() {
112
         assertEquals("20:20", new Clock(-25, -160).toString());
112
         assertEquals("20:20", new Clock(-25, -160).toString());
113
     }
113
     }
114
 
114
 
115
-    @Ignore
115
+    @Ignore("Remove to run test")
116
     @Test
116
     @Test
117
     public void negativeHourAndMinutesBothRollOverContinuously() {
117
     public void negativeHourAndMinutesBothRollOverContinuously() {
118
         assertEquals("22:10", new Clock(-121, -5810).toString());
118
         assertEquals("22:10", new Clock(-121, -5810).toString());