问题
I'm working on MMU project and I don't know how to fix this error on @Test
annotation.
How I can fix it? I have added JUnit
library but that's not working.
回答1:
JUnit Jupiter is part of JUnit 5. Chances are you've added an older version of JUnit (especially judging by the junit3 tag in your question).
You need to add JUnit's Jupiter's engine and api jars:
- org.junit.jupiter:junit-jupiter-api:5.2.0 - https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api/5.2.0
- org.junit.jupiter:junit-jupiter-engine:5.2.0 - https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine/5.2.0
来源:https://stackoverflow.com/questions/51046506/how-to-fix-the-import-org-junit-jupiter