~/talk

The unknowns of JUnit 5

Talkat 4Developers 2022 Online · 2022-04-04..04-07· [testing, java]
links:none on file
slides:none on file

Shows concrete JUnit 5 tricks: replace multiple similar tests with ParameterizedTest using MethodSource or @CsvSource plus text blocks and custom delimiters to make data-table style cases, use records for type-safe arguments and the name placeholder/displayName to print business-friendly row descriptions, write an Extension implementing BeforeAll/BeforeEach/AfterAll and ParameterResolver injection to avoid base test classes (example: WireMock server), and toggle parallel execution via junit-platform.properties and ExecutionMode with a custom @ParallelizableTest wrapper.

AI-written summary · about

  1. 0:00Introduction to JUnit 5 unknowns
  2. 2:51Advanced parameterized tests
  3. 15:56Avoiding test inheritance
  4. 27:18Testing comparable contracts
  5. 31:15Pragmatic test parallelization
  6. 40:30Closing and resources
~/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.