- changed status to open
Some tests do not fail for missing exceptions
Issue #475
resolved
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)
-
-
- changed status to resolved
Did a scan for missing fails - all should be fixed now: 945d35b8
- Log in to comment
Thanks for pointing those lapses :)