tracks/java/exercises/clock/src/test/java/ClockAddTest.java in trackler-2.1.0.8 vs tracks/java/exercises/clock/src/test/java/ClockAddTest.java in trackler-2.1.0.9
- old
+ new
@@ -3,130 +3,130 @@
import static org.junit.Assert.assertEquals;
public class ClockAddTest {
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void addMinutes() {
Clock clock = new Clock(10, 0);
clock.add(3);
assertEquals("10:03", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void addNoMinutes() {
Clock clock = new Clock(6, 41);
clock.add(0);
assertEquals("06:41", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void addToNextHour() {
Clock clock = new Clock(0, 45);
clock.add(40);
assertEquals("01:25", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void addMoreThanOneHour() {
Clock clock = new Clock(10, 0);
clock.add(61);
assertEquals("11:01", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void addMoreThanTwoHoursWithCarry() {
Clock clock = new Clock(0, 45);
clock.add(160);
assertEquals("03:25", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void addAcrossMidnight() {
Clock clock = new Clock(23, 59);
clock.add(2);
assertEquals("00:01", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void addMoreThanOneDay() {
Clock clock = new Clock(5, 32);
clock.add(1500);
assertEquals("06:32", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void addMoreThanTwoDays() {
Clock clock = new Clock(1, 1);
clock.add(3500);
assertEquals("11:21", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void subtractMinutes() {
Clock clock = new Clock(10, 3);
clock.add(-3);
assertEquals("10:00", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void subtractToPreviousHour() {
Clock clock = new Clock(10, 3);
clock.add(-30);
assertEquals("09:33", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void subtractMoreThanAnHour() {
Clock clock = new Clock(10, 3);
clock.add(-70);
assertEquals("08:53", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void subtractAcrossMidnight() {
Clock clock = new Clock(0, 3);
clock.add(-4);
assertEquals("23:59", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void subtractMoreThanTwoHours() {
Clock clock = new Clock(0, 0);
clock.add(-160);
assertEquals("21:20", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void subtractMoreThanTwoHoursWithBorrow() {
Clock clock = new Clock(6, 15);
clock.add(-160);
assertEquals("03:35", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void subtractMoreThanOneDay() {
Clock clock = new Clock(5, 32);
clock.add(-1500);
assertEquals("04:32", clock.toString());
}
- @Ignore
+ @Ignore("Remove to run test")
@Test
public void subtractMoreThanTwoDays() {
Clock clock = new Clock(2, 20);
clock.add(-3000);
assertEquals("00:20", clock.toString());