Class ReferenceMatchers
- java.lang.Object
-
- com.atlassian.confluence.api.testsupport.matchers.model.reference.ReferenceMatchers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.hamcrest.Matcher<List<?>>isCollapsedList()Matches Lists which implement Collapsed and whose iterator throws IllegalStateException (e.g.static org.hamcrest.Matcher<Map<?,?>>isCollapsedMap()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<?>>isEmptyNonCollapsedList()Matches Lists which do not implement Collapsed and whose iterator is emptystatic org.hamcrest.Matcher<Map<?,?>>isEmptyNonCollapsedMap()Matches Maps which do not implement Collapsed and which are emptystatic org.hamcrest.Matcher<PageResponse<?>>isEmptyNonCollapsedPageResponse()Matches PageResponses which do not implement Collapsed and whose iterator is emptystatic com.atlassian.confluence.api.testsupport.matchers.model.reference.ReferenceMatchers.EmptyReferenceMatcherisEmptyReference(Class<?> expectedReferentClass)Matches empty references to the specified class
-
-
-
Method Detail
-
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
public static org.hamcrest.Matcher<List<?>> isCollapsedList()
Matches Lists which implement Collapsed and whose iterator throws IllegalStateException (e.g. CollapsedList)
-
isEmptyNonCollapsedList
public static org.hamcrest.Matcher<List<?>> isEmptyNonCollapsedList()
Matches Lists which do not implement Collapsed and whose iterator is empty
-
isEmptyNonCollapsedPageResponse
public static org.hamcrest.Matcher<PageResponse<?>> isEmptyNonCollapsedPageResponse()
Matches PageResponses which do not implement Collapsed and whose iterator is empty
-
isCollapsedMap
public static org.hamcrest.Matcher<Map<?,?>> isCollapsedMap()
Matches Maps which implement Collapsed and whose iterator throws IllegalStateException (e.g. CollapsedMap)
-
isEmptyNonCollapsedMap
public static org.hamcrest.Matcher<Map<?,?>> isEmptyNonCollapsedMap()
Matches Maps which do not implement Collapsed and which are empty
-
-