|
@ -117,7 +117,7 @@ class testProgramm { |
|
|
assertTrue(true); |
|
|
assertTrue(true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Schaltjahr |
|
|
|
|
|
|
|
|
// Schaltjahr |
|
|
@Test |
|
|
@Test |
|
|
public void testSchaltjahr() { |
|
|
public void testSchaltjahr() { |
|
|
ByteArrayInputStream in = new ByteArrayInputStream("2000\n".getBytes()); |
|
|
ByteArrayInputStream in = new ByteArrayInputStream("2000\n".getBytes()); |
|
@ -129,18 +129,15 @@ class testProgramm { |
|
|
|
|
|
|
|
|
assertEquals("Welches Jahr möchtest du untersuchen?\nSchaltjahr!\n", out.toString()); |
|
|
assertEquals("Welches Jahr möchtest du untersuchen?\nSchaltjahr!\n", out.toString()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
public void testNumber() { |
|
|
public void testNumber() { |
|
|
int expected = 0; |
|
|
int expected = 0; |
|
|
int actual = getNumber(); |
|
|
int actual = getNumber(); |
|
|
assertEquals(expected, actual); |
|
|
assertEquals(expected, actual); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private int getNumber() { |
|
|
private int getNumber() { |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
public void testTimer() { |
|
|
public void testTimer() { |
|
|
int actualTime = (int) (Math.random() * 10 + 1); |
|
|
int actualTime = (int) (Math.random() * 10 + 1); |
|
@ -153,7 +150,6 @@ class testProgramm { |
|
|
|
|
|
|
|
|
assertTrue(result); |
|
|
assertTrue(result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
void testtest() { |
|
|
void testtest() { |
|
|
assertTrue(true); |
|
|
assertTrue(true); |
|
|