Search in sources :

Example 1 with ScriptResourceCacheManager

use of org.apereo.cas.util.scripting.ScriptResourceCacheManager in project cas by apereo.

the class ReturnMappedAttributeReleasePolicyTests method beforeEach.

@BeforeEach
public void beforeEach() {
    ApplicationContextProvider.holdApplicationContext(applicationContext);
    ApplicationContextProvider.registerBeanIntoApplicationContext(applicationContext, new GroovyScriptResourceCacheManager(), ScriptResourceCacheManager.BEAN_NAME);
    ApplicationContextProvider.getScriptResourceCacheManager().ifPresent(ScriptResourceCacheManager::clear);
}
Also used : ScriptResourceCacheManager(org.apereo.cas.util.scripting.ScriptResourceCacheManager) GroovyScriptResourceCacheManager(org.apereo.cas.util.scripting.GroovyScriptResourceCacheManager) GroovyScriptResourceCacheManager(org.apereo.cas.util.scripting.GroovyScriptResourceCacheManager) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

GroovyScriptResourceCacheManager (org.apereo.cas.util.scripting.GroovyScriptResourceCacheManager)1 ScriptResourceCacheManager (org.apereo.cas.util.scripting.ScriptResourceCacheManager)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1