0
我究竟是如何嘲笑这样的事情(从WS库Play的WSRequest的POST方法)方法:ScalaMock有两个参数组
def post[T](body: T)(implicit wrt: Writeable[T], ct: ContentTypeOf[T]): Future[WSResponse]
我通过阅读ScalaMock page about this我不取得任何成功。
它也可以被钉住?我没有运气尝试此:
(mockRequest.post[String] (_ : String)(_ : Writeable[String], _: ContentTypeOf[String])).when(*,*,*).returns(Future.successful(mockResponse))