Checking Module Boundaries in a Java Monolith
Use an ArchUnit test to check a Java module boundary, examine a violation and move the dependency behind the module's API.

Omphile Matheolane is a software engineering leader and conference speaker focused on Java, domain-driven design and modular architectures. He maintains Modulith Rules, an open-source ArchUnit rule library for modular monoliths.
Omphile MatheolaneUse an ArchUnit test to check a Java module boundary, examine a violation and move the dependency behind the module's API.