David Pursehouse
6690a3d191
T0003_BasicTest: Fix incorrect usage of ExpectedException
There should only be one statement after the expect(...) method. Any additional statements after the statement that is expected to throw will never be executed in a passing test. This can lead to inappropriately passing tests where later incorrect assertions are skipped by the thrown exception. See https://errorprone.info/bugpattern/ExpectedExceptionChecker Change-Id: I20fecf8fb7a243e9da097e6d03fbf8cd69151bf0 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com> |
5 lat temu | |
---|---|---|
.. | ||
org/eclipse/jgit | T0003_BasicTest: Fix incorrect usage of ExpectedException | 5 lat temu |