Open sergproua opened 1 year ago
I struggled with this a bit but found a workaround. Simply cast StateMachineTransitionBuilder
on StateMachineTransitionConfigurer
(in your case, builder.configureTransitions()
) to access additional configuration methods. Then use StateMachineTransitionBuilder.addTransition
method to include your ReactiveGuard
.
I created simple test machine with trigger-less transitions, my tests using StateMachineTestPlan
shouldGetToTheFinishAndWinStepTest
andshouldGetToTheFinishAndLooseStepTest
as well as nonreactive testsshouldGetToTheFinishAndWinNonReactiveTest
andshouldGetToTheFinishAndLooseNonReactiveTest
using sendEvent(...).subscribe() work as expected however getting flux from SendEvent and "flatmapping" them in tests 'shouldGetToTheFinishAndWinReactiveTest' and 'shouldGetToTheFinishAndLooseReactiveTest' do not work. Is it a bug or a feature? What am I missing? Thanks in advance!