JUnit library present; it's in pom.xml, it's in Project -> External Libraries, it's in Project Settings -> Libraries, it shows when typing Ctrl-N, etc., but symbol TestName not found

已回答

I'm utterly baffled. I do not have this problem in various other projects, but I cannot seem to fix it in this one. Is this illustration enough?

 

0

I had already ensured that (and I had invalidated the cache through restarting a couple of time too just in case). However, I discovered that I had marked the JUnit JAR's scope as "test" and the code using it was not test code a priori. Sorry for the miscue. Thanks.

 

0

请先登录再写评论。