refactor: change the windows path to the linux path
This commit is contained in:
+2
-2
@@ -110,10 +110,10 @@ class FileUploadUtilsTest {
|
||||
@Test
|
||||
void getFileAbsolutePath() {
|
||||
AgileBootConfig agileBootConfig = new AgileBootConfig();
|
||||
agileBootConfig.setFileBaseDir("D:\\agileboot");
|
||||
agileBootConfig.setFileBaseDir("/home/agileboot");
|
||||
|
||||
String fileAbsolutePath = FileUploadUtils.getFileAbsolutePath(UploadSubDir.AVATAR_PATH, "test.jpg");
|
||||
|
||||
Assertions.assertEquals("D:\\agileboot\\profile\\avatar\\test.jpg", fileAbsolutePath);
|
||||
Assertions.assertEquals("/home/agileboot/profile/avatar/test.jpg", fileAbsolutePath);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user