Skip to content

Instantly share code, notes, and snippets.

@SDiamante13
Last active March 6, 2020 02:42
Show Gist options
  • Select an option

  • Save SDiamante13/8725c4b01f3318e3bede508a3bc60d18 to your computer and use it in GitHub Desktop.

Select an option

Save SDiamante13/8725c4b01f3318e3bede508a3bc60d18 to your computer and use it in GitHub Desktop.
An example on how to declare a Spy using Mockito.
@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