我目前正在尝试在游戏框架中使用 Mockclasses 进行测试。我已经实现了文档中所写的所有内容。不幸的是,编译器说:
[error] bad symbolic reference. A signature in MockitoStubs.class refers to term stubbing
[error] in package org.mockito which is not available.
[error] It may be completely missing from the current classpath, or the version on
[error] the classpath might be incompatible with the version used when compiling MockitoStubs.class.
我发现其他一些人在 Mac 上运行游戏并且有同样的错误,但我找不到任何解决方案。有没有人有这个问题的解决方案?也许是mac jdk的问题?