fail("Test didn't work with parameter=" + parameter); assertEquals("The things are not equal for parameter=" + parameter, thing1, thing2);
Programming Tips - Java: make jUnit print a message when a test fails
Date: 2014dec2
Language: Java
Product: jUnit
Q. Java: make jUnit print a message when a test fails
A. There are alternate versions of most assert functions that will
to just that. eg: