This commit is contained in:
Looly
2023-03-29 12:20:58 +08:00
parent 73cf56f3a2
commit 7af3344b5e
2 changed files with 14 additions and 6 deletions

View File

@@ -5,9 +5,7 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.IOException;
import java.io.*;
/**
* 文件类型判断单元测试
@@ -92,4 +90,10 @@ public class FileTypeUtilTest {
Assert.assertEquals("txt", type);
}
@Test
@Ignore
public void issue3024Test() {
String x = FileTypeUtil.getType(FileUtil.getInputStream("d:/test/TEST_WPS_DOC.doc"),true);
System.out.println(x);
}
}