~/talk

Mastering Java Testing With JUnit, Mockito, and AssertJ in IntelliJ IDEA

Talkat IntelliJ IDEA Conf 2024 · 2024-03-06..03-07· [java, testing]
links:none on file
slides:none on file

Shows concrete JUnit 5 techniques: parameterized tests with CSV and method sources, lazy failure messages via assertion suppliers, assertAll with executables, per-class lifecycle and parallel test execution — all demonstrated running against real HTTP APIs (JsonPlaceholder and an “people in space” gateway) so the examples actually execute. Shows Mockito for stubs vs mocks, spies, argument matchers and Mockito verify interactions (including throwing exceptions and verifying calls), and AssertJ for readable map/assertion checks; examples compile and run inside IntelliJ IDEA.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:27JUnit 5 architecture
  3. 4:26JUnit 5 lifecycle and naming
  4. 6:18Advanced JUnit 5 features
  5. 9:21JUnit 5 assertions
  6. 16:59Parameterized testing examples
  7. 21:45Parallel testing and lifecycle
  8. 28:03Introduction to Mockito
  9. 31:51Mockito example: API gateway
  10. 37:42Mocks vs stubs and verification
  11. 45:03Mockito annotations and BDD
  12. 48:00Mockito spies
  13. 50:48Mockito advanced features
  14. 55:55AssertJ 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.