Show why the test failed
This commit is contained in:
parent
9a98475131
commit
721bb4f78a
|
@ -287,10 +287,10 @@ public class StopWatchTest extends AbstractLangTest {
|
||||||
final long totalTime = watch.getTime();
|
final long totalTime = watch.getTime();
|
||||||
|
|
||||||
assertEquals(splitStr.length(), 12, "Formatted split string not the correct length");
|
assertEquals(splitStr.length(), 12, "Formatted split string not the correct length");
|
||||||
assertTrue(splitTime >= 500);
|
assertTrue(splitTime >= 500, "expected >= 500, actual: " + splitTime);
|
||||||
assertTrue(splitTime < 700);
|
assertTrue(splitTime < 700, "expected < 500, actual: " + splitTime);
|
||||||
assertTrue(totalTime >= 1500);
|
assertTrue(totalTime >= 1500, "expected >= 1500, actual: " + totalTime);
|
||||||
assertTrue(totalTime < 1900);
|
assertTrue(totalTime < 1900, "expected < 1900, actual: " + totalTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue