@Test public void testBuildOuterLocalTxStep() { final LocalTransaction localTransaction = mock(LocalTransaction.class); final StepLocalTxVisitor result = businessLocalTransactionManagerImplUnderTest.buildOuterLocalTxStep(Optional.of(localTransaction)); assertEquals(result.getProvision().getLocalTransaction(), localTransaction); assertEquals(result.getBubbleCache(), mockBubbleCache); assertEquals(result.getApplicationEventPublisher(), mockApplicationEventPublisher); assertEquals(result.getCommandOrchestrator(), mockCommandOrchestrator); }
StepLocalTxVisitor buildOuterLocalTxStep(Optional<LocalTransaction> localTransaction) { VisitorProvision provision = VisitorProvision.builder().localTransaction(localTransaction.get()).build(); return OuterLocalTxStepVisitor.builder().provision(provision).bubbleCache(bubbleCache) .transactionUtilities(txUtilities).applicationEventPublisher(applicationEventPublisher) .commandOrchestrator(commandOrchestrator).build(); }
BusinessLocalTransactionManagerImpl implements BusinessLocalTransactionManager { StepLocalTxVisitor buildOuterLocalTxStep(Optional<LocalTransaction> localTransaction) { VisitorProvision provision = VisitorProvision.builder().localTransaction(localTransaction.get()).build(); return OuterLocalTxStepVisitor.builder().provision(provision).bubbleCache(bubbleCache) .transactionUtilities(txUtilities).applicationEventPublisher(applicationEventPublisher) .commandOrchestrator(commandOrchestrator).build(); } }
BusinessLocalTransactionManagerImpl implements BusinessLocalTransactionManager { StepLocalTxVisitor buildOuterLocalTxStep(Optional<LocalTransaction> localTransaction) { VisitorProvision provision = VisitorProvision.builder().localTransaction(localTransaction.get()).build(); return OuterLocalTxStepVisitor.builder().provision(provision).bubbleCache(bubbleCache) .transactionUtilities(txUtilities).applicationEventPublisher(applicationEventPublisher) .commandOrchestrator(commandOrchestrator).build(); } BusinessLocalTransactionManagerImpl(GlobalTransactionRepository globalTransactionRepository,
			CommandOrchestrator commandOrchestrator, ApplicationEventPublisher applicationEventPublisher,
			BubbleCache bubbleCache, TransactionUtilities txUtilities); }
BusinessLocalTransactionManagerImpl implements BusinessLocalTransactionManager { StepLocalTxVisitor buildOuterLocalTxStep(Optional<LocalTransaction> localTransaction) { VisitorProvision provision = VisitorProvision.builder().localTransaction(localTransaction.get()).build(); return OuterLocalTxStepVisitor.builder().provision(provision).bubbleCache(bubbleCache) .transactionUtilities(txUtilities).applicationEventPublisher(applicationEventPublisher) .commandOrchestrator(commandOrchestrator).build(); } BusinessLocalTransactionManagerImpl(GlobalTransactionRepository globalTransactionRepository,
			CommandOrchestrator commandOrchestrator, ApplicationEventPublisher applicationEventPublisher,
			BubbleCache bubbleCache, TransactionUtilities txUtilities); @Override void begin(final LocalTransactionStepDefinition localTransactionStepDefinition); @Override void commit(
			final LocalTransactionStepDefinition<? extends BaseTransactionEvent> localTransactionStepDefinition); @Override void rollBack(
			LocalTransactionStepDefinition<? extends BaseTransactionEvent> localTransactionStepDefinition); @Override Optional<GlobalTransaction> findGlobalTransaction(final String GTX); }
BusinessLocalTransactionManagerImpl implements BusinessLocalTransactionManager { StepLocalTxVisitor buildOuterLocalTxStep(Optional<LocalTransaction> localTransaction) { VisitorProvision provision = VisitorProvision.builder().localTransaction(localTransaction.get()).build(); return OuterLocalTxStepVisitor.builder().provision(provision).bubbleCache(bubbleCache) .transactionUtilities(txUtilities).applicationEventPublisher(applicationEventPublisher) .commandOrchestrator(commandOrchestrator).build(); } BusinessLocalTransactionManagerImpl(GlobalTransactionRepository globalTransactionRepository,
			CommandOrchestrator commandOrchestrator, ApplicationEventPublisher applicationEventPublisher,
			BubbleCache bubbleCache, TransactionUtilities txUtilities); @Override void begin(final LocalTransactionStepDefinition localTransactionStepDefinition); @Override void commit(
			final LocalTransactionStepDefinition<? extends BaseTransactionEvent> localTransactionStepDefinition); @Override void rollBack(
			LocalTransactionStepDefinition<? extends BaseTransactionEvent> localTransactionStepDefinition); @Override Optional<GlobalTransaction> findGlobalTransaction(final String GTX);  }