Implements RSPEC-5833
Note that the part with .as(...) could somehow overlap with S2698, we have to make sure that they both cohabit nicely. See SONARJAVA-3389.
In addition, S2970 will also report incomplete assertion such as:
assertThat("").as("Description");
We should not report an issue if no assertion is made before, to avoid overlap.
- contributes to
-
MMF-2016 [Java] Test code quality: AssertJ related rules
-
- Closed
-
- implements
-
RSPEC-5833 AssertJ methods setting the assertion context should come before an assertion
- Active