L2FProductionType extends HadoopProductionType { static String createProductionName(ProductionRequest productionRequest) throws ProductionException { String prefix = String.format("Level 2 Format %s ", productionRequest.getString("outputFormat", productionRequest.getString(JobConfigNames.CALVALUS_OUTPUT_FORMAT, "NetCDF"))); return createProductionName(prefix, productionRequest); } L2FProductionType(FileSystemService fileSystemService, HadoopProcessingService processingService,
                             StagingService stagingService); @Override Production createProduction(ProductionRequest productionRequest);  }
@Test public void testCreateProductionName() throws Exception { ProductionRequest productionRequest = new ProductionRequest("L2F", "ewa", "minDate", "2005-01-01", "maxDate", "2005-01-31"); String productionName = L2FProductionType.createProductionName(productionRequest); assertEquals("Level 2 Format NetCDF 2005-01-01 to 2005-01-31", productionName); productionRequest = new ProductionRequest("L2F", "ewa", "minDate", "2005-01-01", "maxDate", "2005-12-31", "regionName", "northsea", "outputFormat", "GeoTIFF"); productionName = L2FProductionType.createProductionName(productionRequest); assertEquals("Level 2 Format GeoTIFF 2005-01-01 to 2005-12-31 (northsea)", productionName); }