このようなものをどのように正確にモックする必要がありますか (WS ライブラリからの Play の WSRequest の post メソッド):
def post[T](body: T)(implicit wrt: Writeable[T], ct: ContentTypeOf[T]): Future[WSResponse]
これについて ScalaMock ページを読みましたが、成功していません。
スタブも可能ですか?私は運がないのでこれを試しています:
(mockRequest.post[String] (_ : String)(_ : Writeable[String], _: ContentTypeOf[String])).when(*,*,*).returns(Future.successful(mockResponse))