~/talk

Great tools for engineers: even cleaner tests with Mockito 2

Talkat Devoxx US 2017 · 2017-03-21..03-23· [testing]
slides:none on file

Mockito 2 (released Oct 2016 with ~50 contributors) adds an opt‑in strict stubbing mode via a JUnit rule that surfaces argument mismatches early, turns unused stubs into test failures, and removes the need to duplicate verifyNoMoreInteractions. Demo shows better failure locations for stubbing bugs, byte‑buddy replacing CGLIB for mocking, built‑in Android support, Java 8 lambda friendliness, and support for mocking finals. Claim: fewer brittle, over‑specified tests and faster debugging on large Java codebases (author estimates ~2M users).

AI-written summary · about

  1. 0:00Introduction to Mockito
  2. 1:06Mockito usage and history
  3. 2:25Community and philosophy
  4. 4:52Test driven development
  5. 6:57Debugging in Mockito 1
  6. 11:07Emulating strict mocks
  7. 17:03Mockito's lenient approach
  8. 20:38Strict stubbing feature
  9. 23:58Dry tests with strict stubs
  10. 26:25Unnecessary stub detection
  11. 28:13Future and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.