I am writing a very simple JUnit test and realized that my crash messages do not seem to be printed at all. The test does not work, but there is no way out. Where to failprint on?
@Test
public void testSimpleMethod() {
fail("Test failed!");
}
If it faildoes not print the message that you give it to him, then what is the point of giving him a message in the first place?
source
share