04-26-2022 03:31 AM
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?
04-28-2022 01:40 PM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.