文件表建加原文件名称字段original_name,相关代码修改

This commit is contained in:
谢华宁
2022-05-29 16:19:56 +08:00
parent add9317d89
commit 0fd5de2d73
16 changed files with 40 additions and 43 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 originalName = "单测文件名";
// 调用
String result = fileService.createFile(path, content);
String result = fileService.createFile(originalName, content);
// 断言
assertEquals(result, url);
// 校验数据