mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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
|
||||
|
BIN
repository/src/test/resources/quick/quick.icns
Normal file
BIN
repository/src/test/resources/quick/quick.icns
Normal file
Binary file not shown.
Reference in New Issue
Block a user