Solved! Go to Solution.
Views
Replies
Total Likes
How I solved:
<dependency> <groupId>junit-addons</groupId> <artifactId>junit-addons</artifactId> <scope>test</scope> <version>1.4</version> <exclusions> <exclusion> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> </exclusion> <exclusion> <groupId>junit</groupId> <artifactId>junit</artifactId> </exclusion> </exclusions> </dependency>
Which version of jackson are you using? It should be listed in your pom.
I think json is not loaded.
Can you try with examples at here https://github.com/arunpatidar02/com.aemlab.junitapp/tree/master/core/src/test
To fix this issue you need to add below dependency in pom.xml
<dependency> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> <version>2.12.2</version> <scope>test</scope> </dependency>
Please refer this link of same issue :
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/junit-test-fails-with-saxn...
How I solved:
<dependency> <groupId>junit-addons</groupId> <artifactId>junit-addons</artifactId> <scope>test</scope> <version>1.4</version> <exclusions> <exclusion> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> </exclusion> <exclusion> <groupId>junit</groupId> <artifactId>junit</artifactId> </exclusion> </exclusions> </dependency>
Views
Likes
Replies