use of org.apereo.cas.configuration.model.core.authentication.GroovyAuthenticationPolicyProperties in project cas by apereo.
the class CoreAuthenticationUtilsTests method verifyAuthnPolicyGroovy.
@Test
public void verifyAuthnPolicyGroovy() throws Exception {
val props = new AuthenticationPolicyProperties();
props.getGroovy().add(new GroovyAuthenticationPolicyProperties().setScript("classpath:example.groovy"));
val policy = CoreAuthenticationUtils.newAuthenticationPolicy(props);
verifySerialization(policy);
}
Aggregations