test_class.file: flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/files/MimeTypesTest.java
test_class.identifier: MimeTypesTest
test_case.body: @Test
  	public void testFileNameExtraction() {
  		try {
  			assertNotNull(MimeTypes.getMimeTypeForFileName("test.txt"));
  			assertNotNull(MimeTypes.getMimeTypeForFileName("t.txt"));
  			assertNotNull(MimeTypes.getMimeTypeForFileName("first.second.third.txt"));
  			
  			assertNull(MimeTypes.getMimeTypeForFileName(".txt"));
  			assertNull(MimeTypes.getMimeTypeForFileName("txt"));
  			assertNull(MimeTypes.getMimeTypeForFileName("test."));
  		}
  		catch (Exception e) {
  			e.printStackTrace();
  			fail(e.getMessage());
  		}
  	}
test_case.class_method_signature: MimeTypesTest.testFileNameExtraction()
test_case.full_signature: @Test public void testFileNameExtraction()
test_case.identifier: testFileNameExtraction
test_case.invocations: assertNotNull getMimeTypeForFileName assertNotNull getMimeTypeForFileName assertNotNull getMimeTypeForFileName assertNull getMimeTypeForFileName assertNull getMimeTypeForFileName assertNull getMimeTypeForFileName printStackTrace fail getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFileNameExtraction()
focal_class.declarator: DEFAULT_MIME_TYPE = "application/octet-stream"
focal_class.modifier: private static final
focal_class.original_string: private static final String DEFAULT_MIME_TYPE = "application/octet-stream";
focal_class.type: String
focal_class.var_name: DEFAULT_MIME_TYPE
focal_class.declarator: MIME_MAP = new HashMap<String, String>()
focal_class.modifier: private static final
focal_class.original_string: private static final HashMap<String, String> MIME_MAP = new HashMap<String, String>();
focal_class.type: HashMap<String, String>
focal_class.var_name: MIME_MAP
focal_class.file: flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/files/MimeTypes.java
focal_class.identifier: MimeTypes
focal_class.class_method_signature: MimeTypes.getMimeTypeForExtension(String fileExtension)
focal_class.full_signature: public static String getMimeTypeForExtension(String fileExtension)
focal_class.identifier: getMimeTypeForExtension
focal_class.modifiers: public static
focal_class.parameters: (String fileExtension)
focal_class.return: String
focal_class.signature: String getMimeTypeForExtension(String fileExtension)
focal_class.class_method_signature: MimeTypes.getMimeTypeForFileName(String fileName)
focal_class.full_signature: public static String getMimeTypeForFileName(String fileName)
focal_class.identifier: getMimeTypeForFileName
focal_class.modifiers: public static
focal_class.parameters: (String fileName)
focal_class.return: String
focal_class.signature: String getMimeTypeForFileName(String fileName)
focal_class.class_method_signature: MimeTypes.getDefaultMimeType()
focal_class.full_signature: public static String getDefaultMimeType()
focal_class.identifier: getDefaultMimeType
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDefaultMimeType()
focal_class.class_method_signature: MimeTypes.MimeTypes()
focal_class.full_signature: private  MimeTypes()
focal_class.identifier: MimeTypes
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  MimeTypes()
focal_method.body: public static String getMimeTypeForFileName(String fileName) {
  		int extensionPos = fileName.lastIndexOf('.');
  		if (extensionPos >= 1 && extensionPos < fileName.length() - 1) {
  			String extension = fileName.substring(extensionPos + 1);
  			return getMimeTypeForExtension(extension);
  		}
  		else {
  			return null;
  		}
  	}
focal_method.class_method_signature: MimeTypes.getMimeTypeForFileName(String fileName)
focal_method.full_signature: public static String getMimeTypeForFileName(String fileName)
focal_method.identifier: getMimeTypeForFileName
focal_method.invocations: lastIndexOf length substring getMimeTypeForExtension
focal_method.modifiers: public static
focal_method.parameters: (String fileName)
focal_method.return: String
focal_method.signature: String getMimeTypeForFileName(String fileName)