Category: JUnit

junit tutorials

JUnit Exception Testing

Testing code that throws exceptions is as important than testing only the happy path. It may be even more important. Luckily JUnit provides us with a basic toolkit to verify if an exception is...