Mockito, Spy, PowerMock

Mockito

Mockito Mocks vs. Spies

Mock – bare-bones shell instance

Spy – wrap an existing instance

PowerMock

  • final classes without interfaces
  • static methods
  • privates

Leave a comment

Your email address will not be published. Required fields are marked *