Issue with integration tests after adding event upcaster


We are using Axon 3.0.2 with Spring boot 1.4.4 and we recently had to implement an event upcaster.
We followed the guide on

After adding the JpaEventStorageEngine bean to our spring boot configuration, our integration tests started complaining about missing beans.
We’ve tried to mock some of the parameters required by the JpaEventStorageEngine. For the Serializer and the EntityManagerProvider this seems to work fine.
However, for the TransactionManager we keep getting the following exception (even though I have explicitly added it in our test configuration):

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.axonframework.common.transaction.TransactionManager’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

Anyone ran into something like this before? Or any general suggestions?

Thanks in advance,

Did you specify Spring’s PlatformTransactionManager, or Axon’s TransactionManager? Axon wants the latter (which is normally autocreated by Spring Autoconfig based on the Spring PTM).

Try defining a SpringTransactionManager (wrappig Spring PTM).

Do you use Autoconfig in your integration test? If not, you may have to import some of the Axon AutoConfigurations manually.