~/talk

Java Testing Part 1: JUnit Jupiter and AssertJ

Talkat Great International Developer Summit 2023 · 2023-04-25..04-28· [java, testing]
links:none on file
slides:none on file

JUnit 5 (JUnit Jupiter) reorganizes testing: use a single Jupiter dependency (and add the Vintage engine to run JUnit 4/3 tests) and invoke useJUnitPlatform in Gradle. Highlights include parameterized tests (ValueSource, MethodSource, CSV/FileSource, multi-arg Arguments), lifecycle modes per-class vs per-method, assertion improvements like assertAll, assertThrows and assertTimeout (including preemptive timeouts), conditional execution via OS/JRE/env/system-property annotations and tags, Gradle test forking or JUnit’s experimental parallelism, and out‑of‑the‑box AssertJ integration.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 4:08JUnit 5 architecture
  3. 6:10Project configuration
  4. 14:06Basic annotations
  5. 16:59Lifecycle and display
  6. 22:00Assertion improvements
  7. 37:33Programming by contract
  8. 41:34Conditional testing
  9. 47:05Tagging and nesting
  10. 51:12Parameterized testing
~/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.