~/talk

Learnt Lessons from Mockito 2.x Migration

Talkat Windcity DevFest 2019 · on Friday, 2019-02-01· [testing]
github:hazems
slides:none on file

Migration from Mockito 1.x to 2.x hits real pain: a large app with thousands of tests sees 50% of tests fail after upgrading, thanks to changed matchers, removed white‑box support, and PowerMock incompatibilities. Practical fixes include enabling mock-maker-inline via test resources, iterating PowerMock versions until a compatible build is found, and replacing static calls with a rubber proxy pattern. Demos show removal of PowerMock, concrete Gradle tweaks, and cleaner tests that actually run.

AI-written summary · about

  1. 0:00Start
  2. 4:05Wizard Fragment
  3. 4:35Weather Presenter
  4. 5:30Wizard Presenter
  5. 15:07Mocking the Dependencies
  6. 20:27Illegal Access Exceptions
  7. 24:19Esthetic Methods
  8. 24:45Rubber Proxy Pattern
  9. 29:35Demo
  10. 31:18Inline Mocking
~/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.