New JoinVarArgsContains inspection that will detect multiple .contains(), .doesNotContain(), and .containsOnlyOnce() calls within the same statement that could be joined together using variadic arguments.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
Finds assertions where multiple .contains(), .containsOnlyOnce() or .doesNotContain() are
|
||||
used in a single statement that could be joined together.
|
||||
<!-- tooltip end -->
|
||||
Only works when variadic arguments are possible and will not be performed on more complex
|
||||
statements with .extracting() or .as() to avoid changing semantics.
|
||||
<br>
|
||||
Note that the quickfix does not handle comments very well and might remove them during the operation.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user