What is the recommended style of the "message" in a JUnit test?
Here is the message expressed currently:
ReturnedObject ro = objectUnderTest.methodToTest(stub);
Assert.assertNotNull("The object was null!", ro);
Or, is this more correct?
ReturnedObject ro = objectUnderTest.methodToTest(stub);
Assert.assertNotNull("Verify that the object was not null.", ro);
Please pay attention, as you answer my question, to the appearance of the message from the point of view of the user.