assertFalse("Book was already checked in", ml.checkIn(b1));
We're expecting checkIn to fail (assertFalse) so we'd only see the message if checkIn actually worked (returned true) in which case we'd want to see a message like "uh oh we shouldn't have been able to do check that book in".
Or do I just need another cup of tea?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are the AssertionError messages wrong for this?
assertFalse("Book was already checked in", ml.checkIn(b1));
We're expecting checkIn to fail (assertFalse) so we'd only see the message if checkIn actually worked (returned true) in which case we'd want to see a message like "uh oh we shouldn't have been able to do check that book in".
Or do I just need another cup of tea?