Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring AsyncRestTemplate的MockRestServiceServer_Spring_Testing_Asynchronous_Resttemplate - Fatal编程技术网

Spring AsyncRestTemplate的MockRestServiceServer

Spring AsyncRestTemplate的MockRestServiceServer,spring,testing,asynchronous,resttemplate,Spring,Testing,Asynchronous,Resttemplate,Spring4引入了AsyncRestTemplate,但我没有看到类似于MockRestServiceServer的工具用于此模板。有没有办法用模拟服务器为AsyncRestTemplate创建测试?似乎Spring 4.1将添加此支持:

Spring4引入了AsyncRestTemplate,但我没有看到类似于MockRestServiceServer的工具用于此模板。有没有办法用模拟服务器为AsyncRestTemplate创建测试?

似乎Spring 4.1将添加此支持: