New AssertThatInvertedBooleanCondition inspection that will remove inverted boolean expressions inside assertThat().
Renamed a few inspections to better/shorter names (and fixed file and directory names accordingly).
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
Turns a binary expression in the kind of assertThat(actual <operator> expected) with .isTrue()/isFalse()/isEqualTo()/isNotEqualTo()
|
||||
into assertThat(actual).is<operator>(expected).
|
||||
<!-- tooltip end -->
|
||||
There are over 150 combinations that are found with this inspections.
|
||||
It also detects assertThat(actual.equals(expected)) assertions.
|
||||
Also works with constant expressions on the expected side.
|
||||
Swaps actual and expected when actual is a constant expression (correctly transforming the used operator).
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user