Intellij “java: package org.junit does not exist”

后端 未结 5 1933
遥遥无期
遥遥无期 2021-02-07 17:33

When i try to run my test i get the following Errors: I looked up on google and found somthing on google but this didn\'t help.

Error:(3, 24) java: package org.j         


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-07 18:11

    The solution to this is to add junit library as dependency to the project. This can be done by adding junit to global library and then hovering over the error(junit word) and right clicking to add junit to class path. alt+shift+ctrl+s to get project settings in the same either add junit to global library or to project section as mentioned by rob in his answer.

提交回复
热议问题