~/talk

JUnit 5's Best Features

Talkat Great International Developer Summit 2024 · 2024-04-23..04-26· [testing, java]
links:none on file
slides:none on file

Walkthrough of concrete JUnit 5 features with runnable examples and a public repo: shows switching test lifecycles to per-class instantiation to avoid reinitializing state, uses assertAll runs every assertion to report multiple failures, demonstrates lazy failure-message suppliers and logger suppliers, proves assertThrows/assertDoesNotThrow and timeouts, and wires Parameterized tests with ValueSource, MethodSource, CSV/FileSource and an AggregateWith aggregator that parses CSV into Book objects. Also shows conditional OS/JRE/env execution, Vintage engine for JUnit4, Spring extension usage, and experimental parallel test execution via junit-platform.properties.

AI-written summary · about

  1. 0:00Introduction to JUnit 5
  2. 4:35JUnit 5 Platform and Jupiter
  3. 7:03Lifecycle and Test Instance
  4. 10:37Custom Test Names
  5. 14:28Assertions in JUnit 5
  6. 27:43Exception Handling
  7. 33:05Assumptions and Preconditions
  8. 34:34Conditional Test Execution
  9. 38:50Ordered Test Execution
  10. 41:18Parameterized Tests
  11. 51:36Parallel Test Execution
  12. 54:05Extensions in JUnit 5
  13. 56:08Summary 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.