use of org.xwiki.security.authorization.cache.SecurityCacheLoader in project xwiki-platform by xwiki.
the class DefaultSecurityCacheLoaderTest method setUp.
@Before
public void setUp() throws Exception {
XWikiBridge bridge = mocker.registerMockComponent(XWikiBridge.class);
when(bridge.getMainWikiReference()).thenReturn(new WikiReference("wiki"));
securityReferenceFactory = mocker.getInstance(SecurityReferenceFactory.class);
mocker.registerMockComponent(SecurityCache.class);
mocker.registerMockComponent(SecurityCacheRulesInvalidator.class);
mocker.registerMockComponent(SecurityEntryReader.class);
mocker.registerMockComponent(UserBridge.class);
mocker.registerMockComponent(AuthorizationSettler.class);
securityCacheLoader = mocker.getInstance(SecurityCacheLoader.class);
}
Aggregations