GeoTiffProductWriterPlugIn implements ProductWriterPlugIn { public String[] getDefaultFileExtensions() { return GEOTIFF_FILE_EXTENSION.clone(); } GeoTiffProductWriterPlugIn(); String[] getFormatNames(); String[] getDefaultFileExtensions(); Class[] getOutputTypes(); String getDescription(Locale name); ProductWriter createWriterInstance(); BeamFileFilter getProductFileFilter(); static final String GEOTIFF_FORMAT_NAME; static final String[] GEOTIFF_FILE_EXTENSION; }
@Test public void testFileExtensions() { final String[] fileExtensions = plugIn.getDefaultFileExtensions(); assertNotNull(fileExtensions); final List<String> extensionList = Arrays.asList(fileExtensions); assertEquals(2, extensionList.size()); assertEquals(true, extensionList.contains(".tif")); assertEquals(true, extensionList.contains(".tiff")); }