Class AuthorizationTestUtil
java.lang.Object
org.operaton.bpm.engine.test.api.authorization.util.AuthorizationTestUtil
- Author:
- Thorben Lindhauer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertExceptionInfo(String expectedPermissionName, String expectedResourceName, String expectedResourceId, MissingAuthorization info) Checks if the info has the expected parameters.static Permission[]getPermissions(Authorization authorization) static ResourcegetResourceByType(int type)
-
Field Details
-
resourcesByType
-
-
Constructor Details
-
AuthorizationTestUtil
public AuthorizationTestUtil()
-
-
Method Details
-
getResourceByType
-
assertExceptionInfo
public static void assertExceptionInfo(String expectedPermissionName, String expectedResourceName, String expectedResourceId, MissingAuthorization info) Checks if the info has the expected parameters.- Parameters:
expectedPermissionName- to useexpectedResourceName- to useexpectedResourceId- to useinfo- to check
-
getPermissions
- Returns:
- the set of permission for the given authorization
-