~/talk

ArchUnit - Unit Testing Architecture and Design

Talkat JCON 2020 · 2020-10-27..10-30· [testing]
slides:none on file

ArchUnit lets teams encode architecture as executable Java/Kotlin rules that run as unit tests (JUnit4/5) and as Maven/Gradle checks; it inspects bytecode to enforce bytecode-level checks like package containment, acyclic slices, layered and hexagonal (onion/ports-and-adapters) constraints, naming patterns, and annotations. Demo shows concrete rules: classes in api packages must be public, no @Stateful EJBs, classes ending with "Impl" must live in backend or be @Deprecated. It supports PlantUML import, ignore-patterns and a freeze violations store to prevent new regressions while migrating legacy code.

AI-written summary · about

  1. 0:00Introduction
  2. 0:55Who am I
  3. 1:42Architecture
  4. 3:45Why test architecture
  5. 8:25How does it work
  6. 11:57Live demo
  7. 14:37Requirements
  8. 17:32Reflection
  9. 19:05Transformer
  10. 20:05ArchRule
  11. 20:50Changing Modifiers
  12. 23:29Architecture Violation
  13. 30:27ArchUnit Ignore Patterns
  14. 31:56Freezing Architecture
  15. 34:11Enabling Store
  16. 34:54Store Files
  17. 36:56ArchUnit
  18. 38:06Examples
  19. 42:46Why use ArchUnit
  20. 45:16Questions
~/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.