Interface EventSpecifierDsl


public interface EventSpecifierDsl
Fluent API for specifying the attributes of a single given event. Instances are passed to the consumer in GivenDsl.event(java.util.function.Consumer).

The only required method is payload(Object) - all other attributes have the following defaults if not explicitly specified via this:

Example:

 fixture.given()
     .event(e -> e
         .payload(new OrderPlacedEvent("order-123", "customer-456"))
         .subject("/orders/order-123")
         .time(Instant.parse("2024-01-15T14:30:00Z"))
         .id("event-001")
         .metaData(Map.of("userId", "user-789")))
     .when(...)