Interface GivenMembers<MEMBER extends JavaMember>
- All Superinterfaces:
GivenObjects<MEMBER>
- All Known Subinterfaces:
GivenCodeUnits<CODE_UNIT>,GivenConstructors,GivenFields,GivenMethods
@PublicAPI(usage=ACCESS)
public interface GivenMembers<MEMBER extends JavaMember>
extends GivenObjects<MEMBER>
-
Method Summary
Modifier and TypeMethodDescriptionMembersShould<? extends MembersShouldConjunction<MEMBER>>should()Allows to specify assertions for the set of members under consideration.should(ArchCondition<? super MEMBER> condition) Allows to specify assertions for the set of members under consideration.MembersThat<? extends GivenMembersConjunction<MEMBER>>that()Allows to restrict the set of members under consideration.that(DescribedPredicate<? super MEMBER> predicate) Allows to restrict the set of members under consideration.
-
Method Details
-
that
- Returns:
- A syntax element, which can be used to restrict the members under consideration
-
that
@PublicAPI(usage=ACCESS) GivenMembersConjunction<MEMBER> that(DescribedPredicate<? super MEMBER> predicate) Allows to restrict the set of members under consideration. E.g.
Note that many predefinedmembers().that(haveName("foo"))predicatescan be found within a subclassPredicatesof the respective domain object or a common ancestor. For example,predicatestargetingJavaMembercan be found withinJavaMember.Predicatesor one of the respective ancestors likeHasName.Predicates.- Specified by:
thatin interfaceGivenObjects<MEMBER extends JavaMember>- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-
should
Allows to specify assertions for the set of members under consideration. E.g.
members().should().haveName("foo")- Returns:
- A syntax element, which can be used to restrict the members under consideration
-
should
@PublicAPI(usage=ACCESS) MembersShouldConjunction<MEMBER> should(ArchCondition<? super MEMBER> condition) Allows to specify assertions for the set of members under consideration. E.g.
Predefined conditions to customize and join can be found withinmembers().should(haveName("foo"))ArchConditions.- Specified by:
shouldin interfaceGivenObjects<MEMBER extends JavaMember>- Returns:
- A syntax element, which can be used to restrict the members under consideration
-