The import org.junit cannot be resolved

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

    In starting code line copy past 'Junit' or 'TestNG' elements will show with Error till you import library with the Project File.

    To import Libraries in to project:

    Right Click on the Project --> Properties --> Java Build Path --> Libraries -> Add Library -> 'Junit' or 'TestNG'

    Add Junit Libraries

提交回复
热议问题