Springockito の場所mockito.xsd
が壊れているようです。
使用した
xsi:schemaLocation="http://www.mockito.org/spring/mockito https://bitbucket.org/kubek2k/springockito/raw/tip/springockito/src/main/resources/spring/mockito.xsd
しかし、これはもはや機能しません。現在のURIを知っている人はいますか?
Springockito の場所mockito.xsd
が壊れているようです。
使用した
xsi:schemaLocation="http://www.mockito.org/spring/mockito https://bitbucket.org/kubek2k/springockito/raw/tip/springockito/src/main/resources/spring/mockito.xsd
しかし、これはもはや機能しません。現在のURIを知っている人はいますか?
kubek2k の bitbucket リポジトリにアクセスできなくなったようです。幸いなことに、誰かがここに github ミラーを作成しました。
このレポにアクセスできなくなった場合、ディレクトリmockito.xsd
内にのローカル コピーを作成し、代わりにそれを参照することをお勧めします。src/main/resources
たとえば、src/main/resources/META-INF/spring/mockito.xsd
次の xsd 参照を作成して変更します。
....
http://www.mockito.org/spring/mockito https://bitbucket.org/kubek2k/springockito/raw/tip/springockito/src/main/resources/spring/mockito.xsd">
に
...
http://www.mockito.org/spring/mockito META-INF/spring/mockito.xsd">
2016 年 10 月 5 日更新:
2016 年 10 月 5 日更新 2:
1.0.9 バージョンもここでホストされているようです: https://bitbucket.org/duncan85/springockito/
github のバージョン (最初の回答を参照) とこのバージョンの違いは、「mock」要素の追加のブール属性 (useStaticMap) です。私たちの場合、mockito がそのブール値を期待していたため、テストは失敗していました。
I am also facing the same problem and it works for me by changing xsi:schemaLocation to either "https://raw.githubusercontent.com/AngelInc/Springockito/master/src/main/resources/spring/mockito.xsd" or "http://www.mockito.org/spring/mockito.xsd".