Java 类org.springframework.boot.actuate.security.AuthorizationAuditListener 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AuditAutoConfigurationTests.java   
@Test
public void defaultConfiguration() throws Exception {
    registerAndRefresh(AuditAutoConfiguration.class);
    assertThat(this.context.getBean(AuditEventRepository.class)).isNotNull();
    assertThat(this.context.getBean(AuthenticationAuditListener.class)).isNotNull();
    assertThat(this.context.getBean(AuthorizationAuditListener.class)).isNotNull();
}
项目:spring-boot-concourse    文件:AuditAutoConfigurationTests.java   
@Test
public void defaultConfiguration() throws Exception {
    registerAndRefresh(AuditAutoConfiguration.class);
    assertThat(this.context.getBean(AuditEventRepository.class)).isNotNull();
    assertThat(this.context.getBean(AuthenticationAuditListener.class)).isNotNull();
    assertThat(this.context.getBean(AuthorizationAuditListener.class)).isNotNull();
}
项目:contestparser    文件:AuditAutoConfigurationTests.java   
@Test
public void testTraceConfiguration() throws Exception {
    this.context = new AnnotationConfigApplicationContext();
    this.context.register(AuditAutoConfiguration.class);
    this.context.refresh();
    assertNotNull(this.context.getBean(AuditEventRepository.class));
    assertNotNull(this.context.getBean(AuthenticationAuditListener.class));
    assertNotNull(this.context.getBean(AuthorizationAuditListener.class));
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AuditAutoConfiguration.java   
@Bean
@ConditionalOnClass(name = "org.springframework.security.access.event.AbstractAuthorizationEvent")
@ConditionalOnMissingBean(AbstractAuthorizationAuditListener.class)
public AuthorizationAuditListener authorizationAuditListener() throws Exception {
    return new AuthorizationAuditListener();
}
项目:spring-boot-concourse    文件:AuditAutoConfiguration.java   
@Bean
@ConditionalOnClass(name = "org.springframework.security.access.event.AbstractAuthorizationEvent")
@ConditionalOnMissingBean(AbstractAuthorizationAuditListener.class)
public AuthorizationAuditListener authorizationAuditListener() throws Exception {
    return new AuthorizationAuditListener();
}
项目:contestparser    文件:AuditAutoConfiguration.java   
@Bean
@ConditionalOnClass(name = "org.springframework.security.access.event.AbstractAuthorizationEvent")
public AuthorizationAuditListener authorizationAuditListener() throws Exception {
    return new AuthorizationAuditListener();
}