use of io.spine.test.event.ProjectStarred in project core-java by SpineEventEngine.
the class EventEnricherShould method enrich_several_events_with_same_enrichment_message_with_wildcard_by.
@Test
public void enrich_several_events_with_same_enrichment_message_with_wildcard_by() {
final ProjectCompleted completed = Given.EventMessage.projectCompleted();
final ProjectStarred starred = Given.EventMessage.projectStarred();
final ProjectId completedProjectId = completed.getProjectId();
final ProjectId starredProjectId = starred.getProjectId();
eventBus.post(createEvent(completed));
eventBus.post(createEvent(starred));
assertEquals(getProjectName.apply(completedProjectId), subscriber.projectCompletedEnrichment.getProjectName());
assertEquals(getProjectName.apply(starredProjectId), subscriber.projectStarredEnrichment.getProjectName());
}
Aggregations