ADF-5234: [BE] Viewer - the Mimetype property should be changed when a new type of file is uploaded (#696)

* Added Apple Icons mimetype

* Added MimetypeMapContentTest for Apple Icons
This commit is contained in:
Abdul Mohammed
2021-11-30 13:22:07 +00:00
committed by GitHub
parent 414a13dd8d
commit 4468faae99
5 changed files with 16 additions and 1 deletions

View File

@@ -72,6 +72,14 @@ public class MimetypeMapContentTest extends TestCase
);
}
public void testGuessAppleIconsMimetype() throws Exception
{
assertEquals(
"image/icns",
mimetypeService.guessMimetype("something.icns", openQuickTestFile("quick.icns"))
);
}
public void testGuessMimetypeForFile() throws Exception
{
// Correct ones

Binary file not shown.