Package org.springframework.boot.actuate.audit

Examples of org.springframework.boot.actuate.audit.AuditEventRepository


    @Inject
    private PersistenceAuditEventRepository persistenceAuditEventRepository;

    @Bean
    public AuditEventRepository auditEventRepository() {
        return new AuditEventRepository() {

            @Inject
            private AuditEventConverter auditEventConverter;

            @Override
View Full Code Here


    @Inject
    private PersistenceAuditEventRepository persistenceAuditEventRepository;

    @Bean
    public AuditEventRepository auditEventRepository() {
        return new AuditEventRepository() {

            @Inject
            private AuditEventConverter auditEventConverter;

            @Override
View Full Code Here

*/
public class AuditListenerTests {

  @Test
  public void testStoredEvents() {
    AuditEventRepository repository = mock(AuditEventRepository.class);
    AuditEvent event = new AuditEvent("principal", "type",
        Collections.<String, Object> emptyMap());
    AuditListener listener = new AuditListener(repository);
    listener.onApplicationEvent(new AuditApplicationEvent(event));
    verify(repository).add(event);
View Full Code Here

TOP

Related Classes of org.springframework.boot.actuate.audit.AuditEventRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.