~/talk

JUnit: time to shift into 5th gear!

Talkat Devoxx Belgium 2019 · 2019-11-04..11-08· [java]
links:none on file
slides:none on file

JUnit 5 splits the framework into JUnit Vintage, JUnit Jupiter and the JUnit Platform, requires Surefire >= 2.22, and runs JUnit 4 tests via Vintage so migration can be incremental. New APIs include BeforeAll/BeforeEach, assertThrows and assertAll for multiple failures, test interfaces with default methods for reusable equality checks, built‑in parameterized tests using ValueSource/CsvSource/MethodSource (Stream<Arguments>), nested tests and display name generation, extensions and a parameter resolver API (registerable globally via META-INF) and @Order/TestMethodOrder for orchestrated integration flows.

AI-written summary · about

  1. 0:00Introduction
  2. 0:15JUnit 5 Dependencies
  3. 3:42Migrating Test Annotations
  4. 5:57Advanced Assertions
  5. 9:31Testing on Interfaces
  6. 13:21Parameterized Tests
  7. 20:51JUnit 4 Parameterized Migration
  8. 24:29Spring Extensions
  9. 28:35Integration Test Ordering
  10. 33:49Parameter Resolvers
  11. 44:06Advanced Extensions & Summary
  12. 46:29Q&A Session
~/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.