优化文件上传校验

This commit is contained in:
tanghc
2019-09-24 19:34:32 +08:00
parent 14cf242722
commit fb7b659950
13 changed files with 167 additions and 55 deletions

View File

@@ -197,6 +197,7 @@ public class AllInOneTest extends TestBase {
.addFile("file1", new File(root + "/src/main/resources/file1.txt"))
.addFile("file2", new File(root + "/src/main/resources/file2.txt"))
.callback((requestInfo, responseData) -> {
System.out.println(responseData);
JSONObject jsonObject = JSON.parseObject(responseData);
JSONObject data = jsonObject.getJSONObject(requestInfo.getDataNode());
Assert.assertEquals(data.getString("code"), "10000");