~/talk

Supersonic Subatomic Mocking: How to test your Quarkus app

Talkat JCON-ONLINE 2021 · 2021-10-05..10-08· [testing, java]
links:none on file
slides:none on file

Shows concrete test patterns for a Quarkus + Kotlin app: unit tests with MockK for service logic, then promoted to QuarkusTest when a Quarkus cache annotation must be exercised so CDI uses the mock; reveals a Kotlin/JUnit5 gotcha requiring a static BeforeAll (companion object + @JvmStatic). Uses MockK and the Quarkus MockK JUnit5 extension to auto-inject mocks. Demonstrates failing then fixed tests, reports startup timing (demo run ~8s vs expected ~1s), and notes the extension is v0.2.0 with few contributors but functional.

AI-written summary · about

  1. 0:00Start
  2. 1:07What is this session about?
  3. 2:32Disclaimer
  4. 3:18Excursus: Resource efficiency
  5. 8:53JUnit 5
  6. 9:56MockK
  7. 11:16Scenario
  8. 40:05Quarkus - Drawbacks
  9. 41:16Promising Extension
  10. 41:30Further information
~/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.