Last active
March 6, 2020 02:42
-
-
Save SDiamante13/8725c4b01f3318e3bede508a3bc60d18 to your computer and use it in GitHub Desktop.
An example on how to declare a Spy using Mockito.
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
| @Spy | |
| private CustomerRepository customerRepository; | |
| private CustomerRepository spyCustomerRepository = spy(CustomerRepository.class); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment