Class ReferenceMatchers
java.lang.Object
com.atlassian.confluence.api.testsupport.matchers.model.reference.ReferenceMatchers
Hamcrest matchers for
Reference
objects.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<List<?>>
Matches Lists which implement Collapsed and whose iterator throws IllegalStateException (e.g.static org.hamcrest.Matcher<Map<?,
?>> Matches Maps which implement Collapsed and whose iterator throws IllegalStateException (e.g.static org.hamcrest.Matcher<Reference<?>>
isCollapsedReferenceWithOrWithoutProperties
(Class<?> expectedReferentClass) Matches collapsed references to the specified class, even if they are non-specific ones without properties set for generating navigation linksstatic org.hamcrest.Matcher<Reference<?>>
isCollapsedReferenceWithProperties
(Class<?> expectedReferentClass) Matches collapsed references to the specified class, and checks they have properties set for generating navigation linksstatic org.hamcrest.Matcher<List<?>>
Matches Lists which do not implement Collapsed and whose iterator is emptystatic org.hamcrest.Matcher<Map<?,
?>> Matches Maps which do not implement Collapsed and which are emptystatic org.hamcrest.Matcher<PageResponse<?>>
Matches PageResponses which do not implement Collapsed and whose iterator is emptystatic com.atlassian.confluence.api.testsupport.matchers.model.reference.ReferenceMatchers.EmptyReferenceMatcher
isEmptyReference
(Class<?> expectedReferentClass) Matches empty references to the specified class
-
Method Details
-
isCollapsedReferenceWithOrWithoutProperties
public static org.hamcrest.Matcher<Reference<?>> isCollapsedReferenceWithOrWithoutProperties(Class<?> expectedReferentClass) Matches collapsed references to the specified class, even if they are non-specific ones without properties set for generating navigation links -
isCollapsedReferenceWithProperties
public static org.hamcrest.Matcher<Reference<?>> isCollapsedReferenceWithProperties(Class<?> expectedReferentClass) Matches collapsed references to the specified class, and checks they have properties set for generating navigation links -
isEmptyReference
public static com.atlassian.confluence.api.testsupport.matchers.model.reference.ReferenceMatchers.EmptyReferenceMatcher isEmptyReference(Class<?> expectedReferentClass) Matches empty references to the specified class -
isCollapsedList
Matches Lists which implement Collapsed and whose iterator throws IllegalStateException (e.g. CollapsedList) -
isEmptyNonCollapsedList
Matches Lists which do not implement Collapsed and whose iterator is empty -
isEmptyNonCollapsedPageResponse
Matches PageResponses which do not implement Collapsed and whose iterator is empty -
isCollapsedMap
Matches Maps which implement Collapsed and whose iterator throws IllegalStateException (e.g. CollapsedMap) -
isEmptyNonCollapsedMap
Matches Maps which do not implement Collapsed and which are empty
-