Hi guys, I need help adding dependencies into an Alfresco Platform Archetype Project. I need to test a couple of classes but to do that I need to the spring-test dependency, which is not included in the main community version of Alfresco. I would like to add this to the pom.xml file:
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>5.3.9</version> <scope>test</scope> </dependency>
But if I do so, whenever I make the test run, it gives me this message and the test won't run:
java.lang.illegalstateexception: could not load testcontextbootstrapper [null]. specify @bootstrapwith's 'value' attribute or make the default bootstrapper class available.
Is there any way to add this dependency without getting the error message? Am I doing something wrong?
What exactly you are trying to test via "spring-test"? What is the use case ? If you can elaborate your requirement, it will be helpful to understand and suggest the possible options.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
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.