(1)eclipse配置Git控制台
1、在 Eclipse 中,选择 “Run -> External Tools -> External Tools Configurations”
2、启动moco服务
java -jar ./moco-runner-0.11.0-standalone.jar http -p 8888 -c firstDemo.json
firstDemo.json`
[
{
"description":"第一个mock测试",
"request":{
"uri":"/turan/test"
},
"response":{
"text":"南京终于晴天了",
"headers":{
"Content-Type":"text/html;charset=gbk"
}
}
}
]