~/talk

JUnit 5's Best Features

Talkat Devnexus 2024 · 2024-04-09..04-11· [testing, java]
links:none on file
slides:none on file

JUnit 5 runs legacy JUnit 4/3 tests via the Vintage engine, uses a Platform + Jupiter split, and lets tests choose per-class test instance lifecycle so @BeforeAll can be nonstatic. Assertions include assertAll runs all assertions and assertThrows/assertTimeout (with preemptive cancellation); messages are lazily supplied. Assumptions act as precondition checks. Parameterized tests support method/enum/CSV and a parameterized CSV file source with custom aggregators. Platform supports conditional OS/JRE/env guards, parallel execution via junit-platform.properties, and built-in Spring/Mockito extensions.

AI-written summary · about

  1. 0:00Introduction to JUnit 5
  2. 1:50Legacy test compatibility
  3. 8:13JUnit 5 architecture
  4. 9:39Test lifecycle changes
  5. 12:09Custom test display names
  6. 13:34Assertion improvements
  7. 23:52Lazy error message evaluation
  8. 29:05Assumptions in tests
  9. 33:42Conditional test execution
  10. 39:04Test ordering control
  11. 41:12Parameterized tests
  12. 51:02Parallel test execution
  13. 53:08Conclusion and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.