GlobalMetadata { static boolean isTimeFilterMetadataRequired(BinningOp.TimeFilterMethod timeFilterMethod) { return timeFilterMethod != null && timeFilterMethod != BinningOp.TimeFilterMethod.NONE; } GlobalMetadata(); static GlobalMetadata create(BinningOp operator); static GlobalMetadata create(BinningConfig config); void processMetadataTemplates(File metadataTemplateDir, BinningOp operator, Product targetProduct, Logger logger); SortedMap<String, String> asSortedMap(); MetadataElement asMetadataElement(); void load(File propertiesFile, Logger logger);  }
@Test public void testIsTimeFilterMetadataRequired() { assertFalse(GlobalMetadata.isTimeFilterMetadataRequired(null)); assertFalse(GlobalMetadata.isTimeFilterMetadataRequired(BinningOp.TimeFilterMethod.NONE)); assertTrue(GlobalMetadata.isTimeFilterMetadataRequired(BinningOp.TimeFilterMethod.SPATIOTEMPORAL_DATA_DAY)); assertTrue(GlobalMetadata.isTimeFilterMetadataRequired(BinningOp.TimeFilterMethod.TIME_RANGE)); }