I'm using Springboot to set up my project and @EnableAutoConfiguration annotation. Configurations like datasource, pooling are in application.properties.
But i got error for my test class that activiti failed to find activiti.cfg.xml.
I use @Rule annotation
@Rule
public ActivitiRule activitiRule=new ActivitiRule();
Please kindly advise how could I proceed.
Solved! Go to Solution.
This has been asked previously on stack-overflow at java - Exception when building the ApplicationContext for a JUnit test in Activiti with Spring Boot ... where there is a suggested solution. Please note that I haven't tried this by myself, however looking at it it should work! The question is do you really need to use ActivitiRule? Any reason why you don't want to use the test approach used in activiti-spring-boot-samples/spring-boot-sample-basic at master · Alfresco/activiti-spring-boot-samp... ?
Cheers,
Ciju
This has been asked previously on stack-overflow at java - Exception when building the ApplicationContext for a JUnit test in Activiti with Spring Boot ... where there is a suggested solution. Please note that I haven't tried this by myself, however looking at it it should work! The question is do you really need to use ActivitiRule? Any reason why you don't want to use the test approach used in activiti-spring-boot-samples/spring-boot-sample-basic at master · Alfresco/activiti-spring-boot-samp... ?
Cheers,
Ciju
Thank you so much Ciju, for such a quick response. This addressed my query.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.