我目前正在嘗試在測試框架中使用Mockclasses。 我已經實現了像在文檔中編寫的所有內容。不幸的是,編譯器說:playframework 2.2.0 scala mockito test
[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的問題嗎?
「我已經實現了一切,就像寫在文檔中一樣。」因此,我已經添加mockito到我的依賴關係......正如我在我的答案中所述,切換到新的Mac OS解決了這個問題而沒有任何代碼更改,所以我猜這是一個jdk問題... – MeiSign