Creating Mocks and Setting up Mockito Unit Tests

Creating Mocks and Setting up Mockito Unit Tests Overview You can create mocks either by using the API or by annotation You set up Mockito based unit tests by either using the Mcokito JUnit runner, including a JUnit 4 rule or by the API Creating Mocks Creating mocks programmatically You can create mocks programmatically by