Exception in thread “main” after updating cucumber version

前端 未结 4 1481
迷失自我
迷失自我 2021-01-16 15:26

i have updated my cucumber version after that it is giving following exception:

     WARNING: You are using deprecated Main class. Please use 
   io.cucumber         


        
4条回答
  •  不思量自难忘°
    2021-01-16 16:04

    I had the same problem.

    I put the dependencies below in pom.xml and implements the En interface in the class of steps the problem was solved.

    
        
            io.cucumber
            cucumber-java8
            4.2.0
            test
        
    
        
            io.cucumber
            cucumber-spring
            4.2.0
            test
        
    
        
            io.cucumber
            cucumber-junit
            4.2.0
            test
        
    

提交回复
热议问题