Class TestSecurityUtils
java.lang.Object
com.flowable.core.spring.security.test.TestSecurityUtils
A utility class that can be used when writing tests.
Do not use this for other purposes than tests,
as it will set a non-persisted user as the threadlocal for the Spring Security context.
- Author:
- Joram Barrez
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
setTestAuthenticatedUser
(String userId) static void
setTestAuthenticatedUser
(String userId, String tenantId) static void
setTestAuthenticatedUser
(String userId, String tenantId, String... groupKeys)
-
Method Details
-
setTestAuthenticatedUser
-
setTestAuthenticatedUser
-
setTestAuthenticatedUser
-
resetTestAuthenticatedUser
public static void resetTestAuthenticatedUser()
-