Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

What if your Eclipse doesn't find JUnit classes/imports?

+1 vote
I thought Eclipse would prompt you to add JUnit 4 library to your project, but perhaps not!
asked Oct 10 in CSC 285 (F17) by Forrest Stonedahl (8,538 points)
My eclipse (Oxygen) on Mac has given me a pop-up several times I add Junit to a new workspace. FYI

1 Answer

0 votes
You may need to right click on your project and choose "Build Path -> Configure Build Path", and go to the libraries tab, and "add library" and choose "Junit".

(The org.junit.* package is not part of the standard JVM libraries -- it's an addon.)
answered Oct 10 by Forrest Stonedahl (8,538 points)
...