[java] Update test case (ImmutableField)

This commit is contained in:
Andreas Dangel
2022-05-20 09:08:05 +02:00
parent 2daa3381b4
commit 8a99dee911

View File

@@ -574,7 +574,7 @@ public class ExampleImmutableField {
</test-code> </test-code>
<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> <expected-problems>0</expected-problems>
<code><![CDATA[ <code><![CDATA[
import org.mockito.InjectMocks; import org.mockito.InjectMocks;
@@ -596,6 +596,11 @@ public class ExampleImmutableField {
@Autowired @Autowired
private Foo2 foo2; private Foo2 foo2;
} }
class Foo {}
class Bar {}
class Baz {}
class Foo2 {}
]]></code> ]]></code>
</test-code> </test-code>
</test-data> </test-data>