I am trying to mock a method with mockito-scala-cats
For example
this is my class
class MyService {
def getProperty(property: String): Either[Future, String, ExternalUser] = ???
}
and the test class
class MyServiceSpec extends FunSpec with MockitoSugar with MockitoCats {
describe("MyServiceApiImpl") {
it("get property") {
val serviceApi = mock[MyService]
whenF(serviceApi.getProperty("name")) thenReturn UserExternal()
}
}
}
I get
could not find implicit value for parameter a: cats.Applicative[[B]cats.data.EitherT[scala.concurrent.Future,String,B]]