~/talk

Unit Testing Your Architecture

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

Shows how to add ArchUnit as a Maven dependency and write JUnit 5 tests that catch concrete issues: banning throws of generic Exception/RuntimeException, detecting use of System.out, finding package cycles via slices, and enforcing that all app exceptions extend ComponentException. Demonstrates running rules in the IDE/CI, finds five existing violations, uses ArchUnit’s freeze rules feature to baseline current violations into a stored file, and enforces layered/hexagonal dependency directions so new violations fail fast.

AI-written summary · about

  1. 0:00Start
  2. 0:52Architecture
  3. 1:31Architectural Q&A
  4. 2:29Culture is What You
  5. 3:55The Result: The Big Ball of Mud
  6. 5:37Code Review Tool
  7. 6:46Features
  8. 7:50Why Unit Tests?
  9. 19:36ArchUnit...
~/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.