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