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

Answered

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
2 comments

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

Please sign in to leave a comment.