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

前端 未结 5 1002
不知归路
不知归路 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 12:56

    Another options is to define dependency on rest-assured-all

      
            io.rest-assured
            rest-assured-all
            4.3.1
            test
        
    

    And exclude 3.X version if you are using Spring Mock MVC

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

提交回复
热议问题