'ArchUnit rule to negate package access?
I stumbled upon the following snippet.
ArchRule myRule = classes()
.that().resideInAPackage("..core..")
.should().onlyBeAccessed().byAnyPackage("..controller..");
I wonder how I can negate this condition so, the test should check if the core package is not accessed by the controller package?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
