GeoTiffProductWriterPlugIn implements ProductWriterPlugIn { public Class[] getOutputTypes() { return new Class[]{ String.class, File.class, }; } 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 testOutputTypes() { final Class[] classes = plugIn.getOutputTypes(); assertNotNull(classes); assertEquals(2, classes.length); final List<Class> list = Arrays.asList(classes); assertEquals(true, list.contains(File.class)); assertEquals(true, list.contains(String.class)); }