mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-08 15:21:52 +08:00
文件表建加原文件名称字段name,相关代码修改
This commit is contained in:
@@ -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 name = "单测文件名";
|
||||
// 调用
|
||||
String result = fileService.createFile(originalName, content);
|
||||
String result = fileService.createFile(name, content);
|
||||
// 断言
|
||||
assertEquals(result, url);
|
||||
// 校验数据
|
||||
|
Reference in New Issue
Block a user