Testing#

Junit#

Mockito#

Annotation

Usage

@Mock

Creates a mock

@InjectMocks

Creates as instance of the class and injects the mocks created with @Mock annotation

Spring#