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

后端 未结 5 1439
抹茶落季
抹茶落季 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:30

    I was able to run the Junit 5 tests after adding the platform and launcher dependency:

    
    
        org.junit.platform
        junit-platform-commons
        1.4.0
    
    
    
    
        org.junit.platform
        junit-platform-launcher
        1.4.0
        test
    
    

提交回复
热议问题