use of org.xwiki.security.authorization.cache.SecurityCacheRulesInvalidator in project xwiki-platform by xwiki.
the class DefaultAuthorizationManagerIntegrationTest method initializeMocks.
@BeforeComponent
public void initializeMocks() throws Exception {
cache = new TestCache<Object>();
final CacheManager cacheManager = componentManager.registerMockComponent(CacheManager.class);
when(cacheManager.createNewCache(any(CacheConfiguration.class))).thenReturn(cache);
xWikiBridge = componentManager.registerMockComponent(XWikiBridge.class);
userBridge = componentManager.registerMockComponent(UserBridge.class);
securityEntryReader = componentManager.registerMockComponent(SecurityEntryReader.class);
securityCacheRulesInvalidator = componentManager.registerMockComponent(SecurityCacheRulesInvalidator.class);
}
Aggregations