java.lang.NoClassDefFoundError: io/restassured/mapper/factory/GsonObjectMapperFactory

前端 未结 5 994
不知归路
不知归路 2021-01-01 12:35

I am getting error when I try to execute script with rest assured framework. Please guide me to resolve the same. And I used below jars

Java version - 8
rest         


        
5条回答
  •  甜味超标
    2021-01-01 13:02

    As Jim Riordan said you have to explicitly include io.rest-assured:json-path:4.0.0 and io.rest-assured:xml-path:4.0.0

    I also needed to add an exclusion in my maven dependency io.rest-assured:spring-mock-mvc

    
        io.rest-assured
        spring-mock-mvc
        4.0.0
        test
        
            
                rest-assured
                io.rest-assured
            
        
    
    

提交回复
热议问题