mirror of
https://github.com/sismics/docs.git
synced 2025-12-29 09:31:45 +00:00
test the new mime type detection
This commit is contained in:
@@ -27,5 +27,8 @@ public class TestMimeTypeUtil {
|
||||
// Detect PPTX files
|
||||
path = Paths.get(ClassLoader.getSystemResource("file/apache.pptx").toURI());
|
||||
Assert.assertEquals(MimeType.OFFICE_PRESENTATION, MimeTypeUtil.guessMimeType(path, "apache.pptx"));
|
||||
|
||||
// Detect TXT files
|
||||
Assert.assertEquals(MimeType.TEXT_PLAIN, MimeTypeUtil.guessMimeType(path, "file.txt"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user