@After public void tearDown() throws Exception { CorrelationDataHolder.clear(); }
private CommandMessage createCommandMessage(Object command) { CommandMessage<?> message = asCommandMessage(command); return message.withMetaData( MetaData.from(CorrelationDataHolder.getCorrelationData()) .mergedWith(message.getMetaData())); }
@Before public void setUp() throws Exception { CorrelationDataHolder.clear(); sagaRepository = spy(new InMemorySagaRepository()); manager = new AnnotatedSagaManager(sagaRepository, new SimpleEventBus(), MyTestSaga.class); }