Class AnyDependencyCondition
java.lang.Object
com.tngtech.archunit.lang.ArchCondition<JavaClass>
com.tngtech.archunit.lang.conditions.AnyDependencyCondition
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tngtech.archunit.lang.ArchCondition
ArchCondition.ConditionByPredicate<T extends HasDescription & HasSourceCodeLocation> -
Method Summary
Modifier and TypeMethodDescriptionOverwrites the description of thisArchCondition.final voidcheck(JavaClass item, ConditionEvents events) ignoreDependency(DescribedPredicate<? super Dependency> ignorePredicate) toString()Methods inherited from class com.tngtech.archunit.lang.ArchCondition
and, finish, forSubtype, from, getDescription, init, or
-
Method Details
-
ignoreDependency
@PublicAPI(usage=ACCESS) public AnyDependencyCondition ignoreDependency(DescribedPredicate<? super Dependency> ignorePredicate) -
as
Description copied from class:ArchConditionOverwrites the description of thisArchCondition. E.g.
would then yieldclasses().should(condition.as("some customized description with '%s'", "parameter"))classes should some customized description with 'parameter'.- Overrides:
asin classArchCondition<JavaClass>- Parameters:
description- The new description of thisArchConditionargs- Optional arguments to fill into the description viaString.format(String, Object...)- Returns:
- An
ArchConditionwith adjusteddescription.
-
check
- Specified by:
checkin classArchCondition<JavaClass>
-
toString
- Overrides:
toStringin classArchCondition<JavaClass>
-