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