Using MockitoSugar of scalatestplus-play deprecated
问题 I'm using "scalatestplus-play" % "5.1.0" , and I'm trying to bring MockitoSugar to my class like I did in earlier projects: class MyTestSpec extends AnyFreeSpec with MockitoSugar so I can use the mock[MyClass] function and now it docent exists, can't find in the documentation something else. in my earlier projects I used "scalatestplus-play" % "4.0.3" , I'm sure there is a different way now but can't find what it is 回答1: First option you have, is to use scalatestplus-mockito, where you can