add logtube support

This commit is contained in:
Looly
2021-05-26 14:08:48 +08:00
parent e18555fd47
commit 1eff0fa846
12 changed files with 291 additions and 7 deletions

View File

@@ -26,6 +26,10 @@ public class ExceptionUtilTest {
Assert.assertEquals("main", ele.getMethodName());
}
@Test
public void getStackElementTest(){
}
@Test
public void convertTest() {
// RuntimeException e = new RuntimeException();

View File

@@ -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:"));