Search in sources :

Example 1 with SpringWebflowActionExecutionAuditablePrincipalResolver

use of org.apereo.inspektr.audit.spi.support.SpringWebflowActionExecutionAuditablePrincipalResolver in project cas by apereo.

the class DefaultAuditTrailRecordResolutionPlanTests method verifyOperation.

@Test
public void verifyOperation() {
    val plan = new DefaultAuditTrailRecordResolutionPlan();
    plan.registerAuditActionResolver("action", new DefaultAuditActionResolver());
    plan.registerAuditResourceResolver("resource", new ReturnValueAsStringResourceResolver());
    plan.registerAuditPrincipalResolver("principal", new SpringWebflowActionExecutionAuditablePrincipalResolver("key"));
    assertFalse(plan.getAuditActionResolvers().isEmpty());
    assertFalse(plan.getAuditPrincipalResolvers().isEmpty());
    assertFalse(plan.getAuditActionResolvers().isEmpty());
}
Also used : lombok.val(lombok.val) SpringWebflowActionExecutionAuditablePrincipalResolver(org.apereo.inspektr.audit.spi.support.SpringWebflowActionExecutionAuditablePrincipalResolver) ReturnValueAsStringResourceResolver(org.apereo.inspektr.audit.spi.support.ReturnValueAsStringResourceResolver) DefaultAuditActionResolver(org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver) Test(org.junit.jupiter.api.Test)

Aggregations

lombok.val (lombok.val)1 DefaultAuditActionResolver (org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver)1 ReturnValueAsStringResourceResolver (org.apereo.inspektr.audit.spi.support.ReturnValueAsStringResourceResolver)1 SpringWebflowActionExecutionAuditablePrincipalResolver (org.apereo.inspektr.audit.spi.support.SpringWebflowActionExecutionAuditablePrincipalResolver)1 Test (org.junit.jupiter.api.Test)1