~/talk

The Good, The Bad, and The Stubbed: A Java Unit Testing Adventure

Talkat JCON WORLD ONLINE 2023 · on Wednesday, 2023-11-22· at 18:00· Live-Stream 3, Online - Remote· [testing, java]
links:none on file
slides:none on file

Argues that unit testing is as important as production code and shows a runnable mini shop (bunny supply store) built and tested with JUnit and Mockito, using real classes Shop, CartService and FoodService so examples actually execute. Demonstrates stub vs mock vs spy where stubs provide controlled data, mocks assert side effects and can fail tests, spies wrap real objects, and notes surprising anecdotes like teams with one million passing unit tests but a broken system.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Why unit test
  3. 8:32Good test and good code
  4. 11:41JUnit and Mockito setup
  5. 13:03Stubs vs mocks vs spies
  6. 21:07Testing principles
  7. 36:24Team testing paradigm shift
  8. 38:33Conclusion and Q&A
~/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.