BigGeoTiffProductReader extends AbstractProductReader { static boolean isDimapField(TIFFField field) { if (field != null) { final String value = field.getAsString(0).trim(); return value.contains("<Dimap_Document"); } return false; } protected  BigGeoTiffProductReader(ProductReaderPlugIn readerPlugIn); @Override synchronized void close();  }
@Test public void testIsDimapField_null() { assertFalse(BigGeoTiffProductReader.isDimapField(null)); }
@Test public void testIsDimapField_isDimap() { final TIFFField field = getTiffField(TIFFTag.TIFF_ASCII, new String[]{"<Dimap_Document> blabla"}); assertTrue(BigGeoTiffProductReader.isDimapField(field)); }
@Test public void testIsDimapField_notDimap() { final TIFFField field = getTiffField(TIFFTag.TIFF_ASCII, new String[]{"<Strange_tag> blabla"}); assertFalse(BigGeoTiffProductReader.isDimapField(field)); }