During execution of “when”, detectIllegalStateChanges() fails with “java.lang.AssertionError: The aggregate used in this fixture was initialized with an identifier different than the one used to load it” because previously given command targeted different aggregate root.
I would like to have possibility to create whole test environment (create several AR if necessary) by using givenCommands. Currently it is not possible.
I believe this feature would not be useful in purely event sourced environment, but it could be useful when using HybridJpaRepository.
What do you think?