The import org.junit cannot be resolved

前端 未结 13 2049
梦谈多话
梦谈多话 2020-12-04 09:49

I need to solve a java problem for an interview, and they have sent me the test class. It starts with

import org.junit.Before;

and also ha

相关标签:
13条回答
  • 2020-12-04 10:49

    If you are using Java 9 or above you may need to require the junit dependency in your module-info.java

    module myModule {
        requires junit;
    }
    
    0 讨论(0)
提交回复
热议问题