assertNotBeAccessedByAnyPackage
Asserts that the selected classes are not accessed by any class residing in packages matching the specified patterns.
Example:
domainModels.assertNotBeAccessedByAnyPackage("..web..", "..adapter..")Parameters
Package wildcard patterns representing forbidden accessing classes.
The complete collection of class declarations used for dependency resolution. Defaults to all classes in the loaded project graph.
Throws
if any forbidden class accesses any of the target classes.
Asserts that the selected classes in the scope are not accessed by any class residing in packages matching the specified patterns.
Parameters
Package wildcard patterns representing forbidden accessing classes.
The complete collection of class declarations used for dependency resolution. Defaults to all classes in the loaded project graph.
Throws
if any forbidden class accesses any of the target classes.