This commit is contained in:
tanghc
2019-12-19 11:30:50 +08:00
parent f2d3ee1af9
commit fdd5d3b00d
2 changed files with 28 additions and 0 deletions

View File

@@ -64,6 +64,22 @@ public class AllInOneTest extends TestBase {
client.execute(requestBuilder);
}
/**
* 测试遗留接口
* 以json方式提交(application/json)
*/
public void testPostJSON2() {
Client.RequestBuilder requestBuilder = new Client.RequestBuilder()
.method("getStory33")
.version("1.0")
// 以json方式提交
.postJson(true)
.bizContent(new BizContent().add("id", "1").add("name", "葫芦娃"))
.httpMethod(HttpTool.HTTPMethod.POST);
client.execute(requestBuilder);
}
/**
* 测试feign。gateway -> book-service(consumer) -> story-service(provider)
*/