[java] Update test case (ImmutableField)

This commit is contained in:
Andreas Dangel 2022-05-20 09:08:05 +02:00
parent 2daa3381b4
commit 8a99dee911
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3

View File

@ -574,7 +574,7 @@ public class ExampleImmutableField {
</test-code>
<test-code>
<description>#3874 [java] ImmutableField - false positive when using field setter annotations</description>
<description>#3874 [java] ImmutableField reports fields annotated with @Autowired (Spring) and @Mock (Mockito)</description>
<expected-problems>0</expected-problems>
<code><![CDATA[
import org.mockito.InjectMocks;
@ -596,6 +596,11 @@ public class ExampleImmutableField {
@Autowired
private Foo2 foo2;
}
class Foo {}
class Bar {}
class Baz {}
class Foo2 {}
]]></code>
</test-code>
</test-data>