use of io.spine.core.EventContext in project core-java by SpineEventEngine.
the class TestEventFactory method createEvent.
/**
* Creates an event produced at the passed time.
*/
public Event createEvent(Message messageOrAny, @Nullable Version version, Timestamp atTime) {
final Event event = createEvent(messageOrAny, version);
final EventContext context = event.getContext().toBuilder().setTimestamp(atTime).build();
final Event result = event.toBuilder().setContext(context).build();
return result;
}
Aggregations