Class OperationCheckMatchers
java.lang.Object
com.atlassian.confluence.api.testsupport.matchers.model.permissions.OperationCheckMatchers
Matchers to support tests on
OperationCheck
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<List<OperationCheck>>
containsOperationKeys
(OperationKey... keys) This will not match if there are extra unmatched items.static org.hamcrest.Matcher<OperationCheck>
isAuthorized
(Person person, Target target) static org.hamcrest.Matcher<OperationCheck>
isForbidden
(Person person, Target target) static org.hamcrest.Matcher<OperationCheck>
isInvalid
(Person person, Target target, Class<? extends ServiceException> expectedExceptionClass) static org.hamcrest.Matcher<OperationCheck>
throwsException
(Person person, Target target, Class<? extends RuntimeException> expectedExceptionClass)
-
Method Details
-
isAuthorized
-
isForbidden
-
isInvalid
public static org.hamcrest.Matcher<OperationCheck> isInvalid(Person person, Target target, Class<? extends ServiceException> expectedExceptionClass) -
throwsException
public static org.hamcrest.Matcher<OperationCheck> throwsException(Person person, Target target, Class<? extends RuntimeException> expectedExceptionClass) -
containsOperationKeys
public static org.hamcrest.Matcher<List<OperationCheck>> containsOperationKeys(OperationKey... keys) This will not match if there are extra unmatched items. Both lists must be of the same size.
-