ArchUnit for Spring Boot: Enforcing Layered Architecture as a Unit Test
A layered-architecture rule, a no-field-injection rule, and a no-cycles rule, all checked against real compiled bytecode in under two seconds with no Spring context anywhere -- plus a real captured violation, and a FreezingArchRule demonstration showing how to turn a rule on against a codebase that already fails it.