JUnit Assertions
assertEquals
- Checks that two values are equal. Be careful with objects and doublesassertTrue/assertFalse
- Checks that a value is true or falseassertThrows
- Checks that some code throws an exception- ... many more
- assertions often take a string argument to give more context for what a failure means
14 / 21