// Path: axon-spring-boot-starter-monitoring/src/test/java/hm/binkley/spring/axon/shared/TestAuditEventRepository.java
// public class TestAuditEventRepository
//         implements AuditEventRepository {
//     private final List<AuditEvent> trail = new ArrayList<>();
// 
//     @Override
//     public List<AuditEvent> find(final String principal, final Date after) {
//         throw new UnsupportedOperationException();
//     }
// 
//     @Override
//     public void add(final AuditEvent event) {
//         trail.add(event);
//     }
// 
//     public void reset() {
//         trail.clear();
//     }
// 
//     public int received() {
//         return trail.size();
//     }
// 
//     public AuditEvent eventAt(final int sequence) {
//         return trail.get(sequence);
//     }
// }
// 
// Path: axon-spring-boot-starter-monitoring/src/main/java/hm/binkley/spring/axon/AxonCommandAuditEvent.java
// public static final String AXON_COMMAND_AUDIT_TYPE = CommandMessage.class
//         .getName();
// 
// Path: axon-spring-boot-starter-monitoring/src/main/java/hm/binkley/spring/axon/AxonEventAuditEvent.java
// public static final String AXON_EVENT_AUDIT_TYPE = EventMessage.class
//         .getName();
// 
// Path: axon-spring-boot-starter-monitoring/src/main/java/hm/binkley/spring/axon/SpringBootAuditLogger.java
// public static final String FAILURE_CAUSE = inNamespace("failure-cause");
// 
// Path: axon-spring-boot-starter-monitoring/src/main/java/hm/binkley/spring/axon/SpringBootAuditLogger.java
// public static final String MESSAGE_TYPE = inNamespace("message-type");
// 
// Path: axon-spring-boot-starter-monitoring/src/main/java/hm/binkley/spring/axon/SpringBootAuditLogger.java
// public static final String RETURN_VALUE = inNamespace("return-value");


import hm.binkley.spring.axon.shared.TestAuditEventRepository;
import org.axonframework.commandhandling.gateway.CommandGateway;
import org.axonframework.domain.GenericDomainEventMessage;
import org.axonframework.eventhandling.Cluster;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.audit.AuditEvent;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import java.util.Map;
import static hm.binkley.spring.axon.AxonCommandAuditEvent.AXON_COMMAND_AUDIT_TYPE;
import static hm.binkley.spring.axon.AxonEventAuditEvent.AXON_EVENT_AUDIT_TYPE;
import static hm.binkley.spring.axon.SpringBootAuditLogger.FAILURE_CAUSE;
import static hm.binkley.spring.axon.SpringBootAuditLogger.MESSAGE_TYPE;
import static hm.binkley.spring.axon.SpringBootAuditLogger.RETURN_VALUE;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.fail;
/*
 * This is free and unencumbered software released into the public domain.
 *
 * Anyone is free to copy, modify, publish, use, compile, sell, or
 * distribute this software, either in source code form or as a compiled
 * binary, for any purpose, commercial or non-commercial, and by any
 * means.
 *
 * In jurisdictions that recognize copyright laws, the author or authors
 * of this software dedicate any and all copyright interest in the
 * software to the public domain. We make this dedication for the benefit
 * of the public at large and to the detriment of our heirs and
 * successors. We intend this dedication to be an overt act of
 * relinquishment in perpetuity of all present and future rights to this
 * software under copyright law.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * For more information, please refer to <http://unlicense.org/>.
 */

package hm.binkley.spring.axon.audit;




@DirtiesContext
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = AuditTestConfiguration.class)
public final class AuditIT {
    @Autowired
// Path: axon-spring-boot-starter-monitoring/src/test/java/hm/binkley/spring/axon/shared/TestAuditEventRepository.java
// public class TestAuditEventRepository
//         implements AuditEventRepository {
//     private final List<AuditEvent> trail = new ArrayList<>();
// 
//     @Override
//     public List<AuditEvent> find(final String principal, final Date after) {
//         throw new UnsupportedOperationException();
//     }
// 
//     @Override
//     public void add(final AuditEvent event) {
//         trail.add(event);
//     }
// 
//     public void reset() {
//         trail.clear();
//     }
// 
//     public int received() {
//         return trail.size();
//     }
// 
//     public AuditEvent eventAt(final int sequence) {
//         return trail.get(sequence);
//     }
// }
// 
// Path: axon-spring-boot-starter-monitoring/src/main/java/hm/binkley/spring/axon/AxonCommandAuditEvent.java
// public static final String AXON_COMMAND_AUDIT_TYPE = CommandMessage.class
//         .getName();
// 
// Path: axon-spring-boot-starter-monitoring/src/main/java/hm/binkley/spring/axon/AxonEventAuditEvent.java
// public static final String AXON_EVENT_AUDIT_TYPE = EventMessage.class
//         .getName();
// 
// Path: axon-spring-boot-starter-monitoring/src/main/java/hm/binkley/spring/axon/SpringBootAuditLogger.java
// public static final String FAILURE_CAUSE = inNamespace("failure-cause");
// 
// Path: axon-spring-boot-starter-monitoring/src/main/java/hm/binkley/spring/axon/SpringBootAuditLogger.java
// public static final String MESSAGE_TYPE = inNamespace("message-type");
// 
// Path: axon-spring-boot-starter-monitoring/src/main/java/hm/binkley/spring/axon/SpringBootAuditLogger.java
// public static final String RETURN_VALUE = inNamespace("return-value");


// Path: axon-spring-boot-starter-monitoring/src/test/java/hm/binkley/spring/axon/audit/AuditIT.java
import hm.binkley.spring.axon.shared.TestAuditEventRepository;
import org.axonframework.commandhandling.gateway.CommandGateway;
import org.axonframework.domain.GenericDomainEventMessage;
import org.axonframework.eventhandling.Cluster;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.audit.AuditEvent;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import java.util.Map;
import static hm.binkley.spring.axon.AxonCommandAuditEvent.AXON_COMMAND_AUDIT_TYPE;
import static hm.binkley.spring.axon.AxonEventAuditEvent.AXON_EVENT_AUDIT_TYPE;
import static hm.binkley.spring.axon.SpringBootAuditLogger.FAILURE_CAUSE;
import static hm.binkley.spring.axon.SpringBootAuditLogger.MESSAGE_TYPE;
import static hm.binkley.spring.axon.SpringBootAuditLogger.RETURN_VALUE;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.fail;

/*
 * This is free and unencumbered software released into the public domain.
 *
 * Anyone is free to copy, modify, publish, use, compile, sell, or
 * distribute this software, either in source code form or as a compiled
 * binary, for any purpose, commercial or non-commercial, and by any
 * means.
 *
 * In jurisdictions that recognize copyright laws, the author or authors
 * of this software dedicate any and all copyright interest in the
 * software to the public domain. We make this dedication for the benefit
 * of the public at large and to the detriment of our heirs and
 * successors. We intend this dedication to be an overt act of
 * relinquishment in perpetuity of all present and future rights to this
 * software under copyright law.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * For more information, please refer to <http://unlicense.org/>.
 */

package hm.binkley.spring.axon.audit;




@DirtiesContext
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = AuditTestConfiguration.class)
public final class AuditIT {
    @Autowired
    private CommandGateway commands;