Interface GivenCodeUnits<CODE_UNIT extends JavaCodeUnit>
-
- All Superinterfaces:
GivenMembers<CODE_UNIT>
,GivenObjects<CODE_UNIT>
- All Known Subinterfaces:
GivenConstructors
,GivenMethods
public interface GivenCodeUnits<CODE_UNIT extends JavaCodeUnit> extends GivenMembers<CODE_UNIT>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CodeUnitsShould<? extends CodeUnitsShouldConjunction<CODE_UNIT>>
should()
Allows to specify assertions for the set of members under consideration.CodeUnitsShouldConjunction<CODE_UNIT>
should(ArchCondition<? super CODE_UNIT> condition)
Allows to specify assertions for the set of members under consideration.CodeUnitsThat<? extends GivenCodeUnitsConjunction<CODE_UNIT>>
that()
Allows to restrict the set of members under consideration.GivenCodeUnitsConjunction<CODE_UNIT>
that(DescribedPredicate<? super CODE_UNIT> predicate)
Allows to restrict the set of members under consideration.
-
-
-
Method Detail
-
that
@PublicAPI(usage=ACCESS) CodeUnitsThat<? extends GivenCodeUnitsConjunction<CODE_UNIT>> that()
Description copied from interface:GivenMembers
- Specified by:
that
in interfaceGivenMembers<CODE_UNIT extends JavaCodeUnit>
- Returns:
- A syntax element, which can be used to restrict the members under consideration
-
that
@PublicAPI(usage=ACCESS) GivenCodeUnitsConjunction<CODE_UNIT> that(DescribedPredicate<? super CODE_UNIT> predicate)
Description copied from interface:GivenMembers
- Specified by:
that
in interfaceGivenMembers<CODE_UNIT extends JavaCodeUnit>
- Specified by:
that
in interfaceGivenObjects<CODE_UNIT extends JavaCodeUnit>
- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-
should
@PublicAPI(usage=ACCESS) CodeUnitsShould<? extends CodeUnitsShouldConjunction<CODE_UNIT>> should()
Description copied from interface:GivenMembers
Allows to specify assertions for the set of members under consideration. E.g.
members()
.should()
.haveName("foo")
- Specified by:
should
in interfaceGivenMembers<CODE_UNIT extends JavaCodeUnit>
- Returns:
- A syntax element, which can be used to restrict the members under consideration
-
should
@PublicAPI(usage=ACCESS) CodeUnitsShouldConjunction<CODE_UNIT> should(ArchCondition<? super CODE_UNIT> condition)
Description copied from interface:GivenMembers
Allows to specify assertions for the set of members under consideration. E.g.
members()
.should(haveName("foo"))
- Specified by:
should
in interfaceGivenMembers<CODE_UNIT extends JavaCodeUnit>
- Specified by:
should
in interfaceGivenObjects<CODE_UNIT extends JavaCodeUnit>
- Returns:
- A syntax element, which can be used to restrict the members under consideration
-
-