~/talk

Making the Jump to JUnit 5

Talkat Devnexus 2021 · 2021-02-17..02-18· [testing]
slides:none on file

Migrates JUnit 4 to JUnit 5 by swapping to org.junit.jupiter.api, replacing @RunWith with ExtendWith, and using assertThrows instead of expected exceptions; requires Java 8+ and Spring Boot 2.4+ or Spring 5+, shows converting controller and service tests that use MockMvc and an H2 in‑memory DB, updates annotations to @BeforeEach/@BeforeAll and assertion imports, and demonstrates @ParameterizedTest with @CsvFileSource, expanding the example test suite from 9 to 11 passing tests.

AI-written summary · about

  1. 0:00Start
  2. 0:33Who is Jonathan Meek?
  3. 1:59Problem at hand
  4. 2:30Also, we aren't talking about it
  5. 3:06It's just a dependency swapout, right?
  6. 3:51Couldn't I just use JUnit Vintage?
  7. 5:30TL:DR diff Part 2
  8. 5:58So How Do Upgrade?
  9. 7:25Other Cool Features of JUnit 5
  10. 27:11Resources
~/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.