Search in sources :

Example 1 with ProjectId

use of io.spine.test.core.ProjectId in project core-java by SpineEventEngine.

the class EventEnvelopeShould method outerObject.

@Override
protected Event outerObject() {
    final ProjectId projectId = ProjectId.newBuilder().setId(newUuid()).build();
    final Message eventMessage = ProjectCreated.newBuilder().setProjectId(projectId).build();
    final EventId.Builder eventIdBuilder = EventId.newBuilder().setValue(newUuid());
    final Event event = Event.newBuilder().setId(eventIdBuilder).setMessage(AnyPacker.pack(eventMessage)).setContext(EventContext.getDefaultInstance()).build();
    return event;
}
Also used : Message(com.google.protobuf.Message) ProjectId(io.spine.test.core.ProjectId)

Aggregations

Message (com.google.protobuf.Message)1 ProjectId (io.spine.test.core.ProjectId)1