Created
March 5, 2020 14:04
-
-
Save SDiamante13/143a235c0b273ac24996683f4f90156e to your computer and use it in GitHub Desktop.
An example of declaring a mock without using annotations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CustomerServiceTest { | |
| private CustomerRepository mockCustomerRepository = Mockito.mock(CustomerRepository.class); | |
| private CustomerService customerService = new CustomerService(customerReposistory); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment