playframework 2.2.0 scala mockito测试

playframework 2.2.0 scala mockito测试,scala,mockito,playframework-2.2,Scala,Mockito,Playframework 2.2,我目前正在尝试在play框架中使用MockClass进行测试。 我已经实现了文档中所写的一切。不幸的是,编译器说: [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 c

我目前正在尝试在play框架中使用MockClass进行测试。
我已经实现了文档中所写的一切。不幸的是,编译器说:

[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上运行play,他们也有同样的错误,但我找不到任何解决方案。
有人能解决这个问题吗?mac jdk可能有问题吗?

我刚刚安装了新的OS X 10.9版本,其中包括xCode更新和SDK更新(我想Java也得到了更新)。无论如何,这个错误不会再发生了,所以这可能是jdk的问题…

Mockito是一个可选的依赖项(就像大多数Play2依赖项一样)。摘自my
Build.scala

"org.mockito" % "mockito-all" % "1.9.5"

“我已经实现了文档中所写的一切。”因此,我已经将mockito添加到我的依赖项中。。。正如我在回答中所说的,切换到新的Mac OS解决了这个问题,没有任何编码更改,所以我猜这是一个jdk问题。。。