Interface ModulesShouldConjunction<DESCRIPTOR extends ArchModule.Descriptor>
- All Known Subinterfaces:
ModulesByAnnotationRule<ANNOTATION>,ModulesRule<DESCRIPTOR>
@PublicAPI(usage=ACCESS,
state=EXPERIMENTAL)
public interface ModulesShouldConjunction<DESCRIPTOR extends ArchModule.Descriptor>
-
Method Summary
Modifier and TypeMethodDescriptionLikeandShould(ArchCondition)but offers a fluent API to pick the condition to join.andShould(ArchCondition<? super ArchModule<DESCRIPTOR>> condition) Joins another condition to this rule withandsemantics.
-
Method Details
-
andShould
LikeandShould(ArchCondition)but offers a fluent API to pick the condition to join. -
andShould
@PublicAPI(usage=ACCESS, state=EXPERIMENTAL) ArchRule andShould(ArchCondition<? super ArchModule<DESCRIPTOR>> condition) Joins another condition to this rule withandsemantics. That is, all modules under test now needs to satisfy the existing condition and this new one.
Note that this is always left-associative and does not support any operator precedence.- Parameters:
condition- Another condition to be 'and'-ed to the current condition of this rule- Returns:
- An
ArchRuleto check against importedJavaClasses
-