Class WithMockTenantUserSecurityContextFactory
java.lang.Object
com.totvs.tjf.test.support.security.WithMockTenantUserSecurityContextFactory
- All Implemented Interfaces:
org.springframework.security.test.context.support.WithSecurityContextFactory<WithMockTenantUser>
public class WithMockTenantUserSecurityContextFactory
extends Object
implements org.springframework.security.test.context.support.WithSecurityContextFactory<WithMockTenantUser>
An API that works with
WithSecurityContextFactory for creating a SecurityContext that is populated in the
TestSecurityContextHolder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.context.SecurityContextcreateSecurityContext(WithMockTenantUser annotation)
-
Constructor Details
-
WithMockTenantUserSecurityContextFactory
public WithMockTenantUserSecurityContextFactory()
-
-
Method Details
-
createSecurityContext
public org.springframework.security.core.context.SecurityContext createSecurityContext(WithMockTenantUser annotation) - Specified by:
createSecurityContextin interfaceorg.springframework.security.test.context.support.WithSecurityContextFactory<WithMockTenantUser>
-