代码之家  ›  专栏  ›  技术社区  ›  stefan

如何修复“import org.junit.jupiter”?

  •  1
  • stefan  · 技术社区  · 7 年前

    我在做mmu项目,我不知道如何修正这个错误 @Test 注解。

    enter image description here

    我怎么能修好它?我已经加了 JUnit 但那不管用。

    1 回复  |  直到 7 年前
        1
  •  2
  •   Mureinik    7 年前

    朱庇特是朱庇特5号的一部分。很可能您已经添加了较旧版本的junit(特别是根据 在你的问题中添加标签)。

    您需要添加junit的jupiter引擎和api jar: