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