Search code examples
javaeclipsejunitjunit3junit-jupiter

how to fix "The import org.junit.jupiter"?


I'm working on MMU project and I don't know how to fix this error on @Test annotation.

enter image description here

How I can fix it? I have added JUnit library but that's not working.


Solution

  • JUnit Jupiter is part of JUnit 5. Chances are you've added an older version of JUnit (especially judging by the tag in your question).

    You need to add JUnit's Jupiter's engine and api jars: