mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
feat: 更正FileUtilTest#smbPathTest
This commit is contained in:
parent
9eda35076f
commit
ab0f7a0619
@ -7,6 +7,8 @@ import cn.hutool.core.util.CharsetUtil;
|
|||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Disabled;
|
import org.junit.jupiter.api.Disabled;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.junit.jupiter.api.condition.EnabledOnOs;
|
||||||
|
import org.junit.jupiter.api.condition.OS;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
@ -58,6 +60,7 @@ public class FileUtilTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@EnabledOnOs(OS.WINDOWS)
|
||||||
public void smbPathTest() {
|
public void smbPathTest() {
|
||||||
final String smbPath = "\\\\192.168.1.1\\share\\rc-source";
|
final String smbPath = "\\\\192.168.1.1\\share\\rc-source";
|
||||||
final String parseSmbPath = FileUtil.getAbsolutePath(smbPath);
|
final String parseSmbPath = FileUtil.getAbsolutePath(smbPath);
|
||||||
|
Loading…
Reference in New Issue
Block a user