Some tests do not fail for missing exceptions

Issue #475 resolved
Former user created an issue

Some tests check for expected exceptions by using try-catch. However, not in all cases a missing exception is detected properly, so the test passes even if the expected exception is not thrown.

Examples:

A fail() call (or similar) is missing at the end of the try block. There might be more affected test classes.

Maybe it would also be an option to use JUnit's assertThrows (which has also been added to JUnit 4), but since this project still seems to use Java 7, using assertThrows without lambdas is probably rather cumbersome.

Comments (2)

  1. Log in to comment