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;
}