mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add logtube support
This commit is contained in:
@@ -26,6 +26,10 @@ public class ExceptionUtilTest {
|
||||
Assert.assertEquals("main", ele.getMethodName());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getStackElementTest(){
|
||||
}
|
||||
|
||||
@Test
|
||||
public void convertTest() {
|
||||
// RuntimeException e = new RuntimeException();
|
||||
|
@@ -168,6 +168,13 @@ public class FileUtilTest {
|
||||
Assert.assertEquals(home + "/bar/", FileUtil.normalize("~/foo/../bar/"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void normalizeHomePathTest2() {
|
||||
String home = FileUtil.getUserHomePath().replace('\\', '/');
|
||||
// 多个~应该只替换开头的
|
||||
Assert.assertEquals(home + "/~bar/", FileUtil.normalize("~/foo/../~bar/"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void normalizeClassPathTest() {
|
||||
Assert.assertEquals("", FileUtil.normalize("classpath:"));
|
||||
|
Reference in New Issue
Block a user