NoSuchMethodError: org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass

后端 未结 5 1334
抹茶落季
抹茶落季 2021-01-17 08:07

I have the test that leads to error. I tried to execute it in the IntelliJ Idea 2018.3.2. All jupiter and junit dependencies have version RELEASE

5条回答
  •  时光说笑
    2021-01-17 08:20

    minimal required pom.xml setup for spring-boot 2.1.3 and junit 5.4.0 testing next:

    
    
      
        org.springframework.boot
        spring-boot-starter-parent
        2.1.3.RELEASE
        
      
    
      
        5.4.0
      
    
      
        
          org.junit.jupiter
          junit-jupiter-api
          test
        
        
          org.junit.jupiter
          junit-jupiter-engine
          test
        
        
          org.springframework.boot
          spring-boot-starter-test
          test
        
      
    
    

提交回复
热议问题