Hello,
I read in other topic
(
https://groups.google.com/forum/#!msg/sonarqube/ObGF7lPGtRo/z2-AJZczBwAJ)
that Java plugin supports Mockito library. I created a test which
executes Mockito.verifyZeroInteractions inside, but SonarQube found
S2699 issue. Is this a bug in rule?
Example:
@Test
public void test() { // S2699 on this line: Add at least one assertion
to this test case
final Processor processor = new DoNothingProcessor();
final Argument argument = Mockito.mock(Argument .class)
// DoNothingProcessor should not change argument state
processor.prepare(argument);
Mockito.verifyZeroInteractions(argument);
}
Java plugin: 3.13.1
Regads,
Adam Gabryś