-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prefer assertThrows to TestNG's expected exception or try-catch blocks.
This narrows the amount of code that the exception can cover and makes the test's expectations more explicit. It also allowed for resolving most CheckReturnValue suppressions, so cases of FutureReturnValueIgnored were also handled when feasible.
- Loading branch information
Showing
47 changed files
with
1,827 additions
and
2,070 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
294 changes: 152 additions & 142 deletions
294
caffeine/src/test/java/com/github/benmanes/caffeine/cache/AsMapTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
358 changes: 194 additions & 164 deletions
358
caffeine/src/test/java/com/github/benmanes/caffeine/cache/AsyncAsMapTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
213 changes: 97 additions & 116 deletions
213
caffeine/src/test/java/com/github/benmanes/caffeine/cache/AsyncCacheTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.