@Test public void testGetRasterNamesToBeExported_exportTiepointsOnyl() { final boolean exportTiePoints = true; final PixExRasterNamesFactory pixExRasterNamesFactory = new PixExRasterNamesFactory(false, exportTiePoints, false, null); final String[] rasterNames = pixExRasterNamesFactory.getRasterNames(product); final String[] expected = {"tp1", "tp2", "tp3"}; assertThat(rasterNames, equalTo(expected)); }
@Override public String[] getRasterNames(Product product) { final String productType = product.getProductType(); if (rasterNamesMap.containsKey(productType)) { return rasterNamesMap.get(productType); } else { final String[] rasterNames = extractRasterNames(product, aggregatorStrategy); rasterNamesMap.put(productType, rasterNames); return rasterNames; } }
PixExRasterNamesFactory implements RasterNamesFactory { @Override public String[] getRasterNames(Product product) { final String productType = product.getProductType(); if (rasterNamesMap.containsKey(productType)) { return rasterNamesMap.get(productType); } else { final String[] rasterNames = extractRasterNames(product, aggregatorStrategy); rasterNamesMap.put(productType, rasterNames); return rasterNames; } } }
PixExRasterNamesFactory implements RasterNamesFactory { @Override public String[] getRasterNames(Product product) { final String productType = product.getProductType(); if (rasterNamesMap.containsKey(productType)) { return rasterNamesMap.get(productType); } else { final String[] rasterNames = extractRasterNames(product, aggregatorStrategy); rasterNamesMap.put(productType, rasterNames); return rasterNames; } } PixExRasterNamesFactory(boolean exportBands, boolean exportTiePoints, boolean exportMasks,
                                   AggregatorStrategy aggregatorStrategy); }
PixExRasterNamesFactory implements RasterNamesFactory { @Override public String[] getRasterNames(Product product) { final String productType = product.getProductType(); if (rasterNamesMap.containsKey(productType)) { return rasterNamesMap.get(productType); } else { final String[] rasterNames = extractRasterNames(product, aggregatorStrategy); rasterNamesMap.put(productType, rasterNames); return rasterNames; } } PixExRasterNamesFactory(boolean exportBands, boolean exportTiePoints, boolean exportMasks,
                                   AggregatorStrategy aggregatorStrategy); @Override String[] getRasterNames(Product product); @Override String[] getUniqueRasterNames(Product product); }
PixExRasterNamesFactory implements RasterNamesFactory { @Override public String[] getRasterNames(Product product) { final String productType = product.getProductType(); if (rasterNamesMap.containsKey(productType)) { return rasterNamesMap.get(productType); } else { final String[] rasterNames = extractRasterNames(product, aggregatorStrategy); rasterNamesMap.put(productType, rasterNames); return rasterNames; } } PixExRasterNamesFactory(boolean exportBands, boolean exportTiePoints, boolean exportMasks,
                                   AggregatorStrategy aggregatorStrategy); @Override String[] getRasterNames(Product product); @Override String[] getUniqueRasterNames(Product product);  }