ModisProductReaderPlugIn implements ProductReaderPlugIn { static File getInputFile(Object input) { if (input instanceof String) { return new File((String) input); } else if (input instanceof File) { return (File) input; } return null; }  DecodeQualification getDecodeQualification(Object input); Class[] getInputTypes(); ProductReader createReaderInstance(); SnapFileFilter getProductFileFilter(); String[] getDefaultFileExtensions(); String getDescription(Locale locale); String[] getFormatNames();  }
@Test public void testGetInputFile_nullInput() { assertNull(ModisProductReaderPlugIn.getInputFile(null)); }
@Test public void testGetInputFile_stringInput() { String testFileName = "test.file"; final File file = ModisProductReaderPlugIn.getInputFile(testFileName); assertNotNull(file); assertEquals(testFileName, file.getName()); }
@Test public void testGetInputFile_fileInput() { final File inputFile = new File("I_am_a.file"); final File file = ModisProductReaderPlugIn.getInputFile(inputFile); assertNotNull(file); assertEquals(inputFile.getName(), file.getName()); }