I wrote some JUnit test methods for IdentityService. Is there a way to rollback modifications in the IdentityService tables at the end of a test with @Rollback or @Transaction?
In the IdentityTest test class on Github there is a manual cleanup at the end of each test method.
As I want to use JPA entities, I need this kind of transactionmanager: <code> <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> <property name="entityManagerFactory" ref="entityManagerFactory"/> </bean>
I have some difficulties in finding the right configuration for my transactionmanager. In general, I need a setup where I can handle activiti and my JPA entities in the same transaction.