Home » JAVA Programming » Java Basic » Question
  1. What is used to inject mock fields into the tested object automatically?
    1. @InjectMockObject
    2. @Mock
    3. @InjectMocks
    4. @Inject
    5. None of these
Correct Option: C

@InjectMocks annotation is used to inject mock fields into the tested object automatically.



Your comments will be displayed only after manual approval.