Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

mockito simpler & better mocking

552 views

Published on

Mocking with mockito
Samples are in https://github.com/adamasas/mockito.git

Published in: Technology
  • Be the first to comment

  • Be the first to like this

mockito simpler & better mocking

  1. 1. Mockito Simpler & better mocking Adomas Greičius
  2. 2. Mockito Simpler & better mocking Test Double Dummy Fake Mocks Spies
  3. 3. Mockito Simpler & better mocking Test Double Dummy Fake Spies Mocks
  4. 4. Mockito Simpler & better mocking Benefits ● Mockito makes mocking very easy. ● It is extremely easy to read mock code. ● Mockito works in any environment and has no external dependencies
  5. 5. Mockito Simpler & better mocking Limitations ● Can not mock final classes ● Can not mock anonymous classes ● Can not mock primitive types ● Can not mock static methods
  6. 6. Mockito Simpler & better mocking
  7. 7. Mockito Simpler & better mocking

×