完成 FileApi 的 feign 支持

This commit is contained in:
YunaiV
2022-06-15 21:05:08 +08:00
parent 4c6e915def
commit 9b3092b3fd
13 changed files with 114 additions and 71 deletions

View File

@@ -80,9 +80,9 @@ public class FileServiceTest extends BaseDbUnitTest {
String url = randomString();
when(client.upload(same(content), same(path))).thenReturn(url);
when(client.getId()).thenReturn(10L);
String name = "单测文件名";
// 调用
String result = fileService.createFile(path, content);
String result = fileService.createFile(name, path, content);
// 断言
assertEquals(result, url);
// 校验数据