The import org.junit cannot be resolved

前端 未结 13 2066
梦谈多话
梦谈多话 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:29

    If you are using eclipse and working on a maven project, then also the above steps work.

    Right-click on your root folder.

    Properties -> Java Build Path -> Libraries -> Add Library -> JUnit -> Junit 3/4
    

    Step By Step Instructions here

提交回复
热议问题