Searched refs:mimeMap (Results 1 – 2 of 2) sorted by relevance
45 private MimeMap mimeMap; field in MimeMapTest49 mimeMap = MimeMap.getDefault(); in setUp()54 mimeMap = null; in tearDown()58 assertNull(mimeMap.guessMimeTypeFromExtension(null)); in lookup_invalidExtension()59 assertNull(mimeMap.guessMimeTypeFromExtension("")); in lookup_invalidExtension()60 assertFalse(mimeMap.hasExtension(null)); in lookup_invalidExtension()61 assertFalse(mimeMap.hasExtension("")); in lookup_invalidExtension()65 assertNull(mimeMap.guessExtensionFromMimeType(null)); in lookup_invalidMimeType()66 assertNull(mimeMap.guessExtensionFromMimeType("")); in lookup_invalidMimeType()67 assertFalse(mimeMap.hasMimeType(null)); in lookup_invalidMimeType()[all …]
40 MimeMap mimeMap = MimeMap.getDefault(); in getContentTypeFor() local44 String result = mimeMap.guessMimeTypeFromExtension(ext); in getContentTypeFor()