@Test public void testValidProduct() { boolean result = _productValidator.isValid(M_product); assertEquals(true, result); verifyNoMoreInteractions(S_logger); }
public boolean isValid(Product product) { return product != null && containsGeoCodingWithReverseOperationSupport(product) && fulfillsTimeConditions(product) && canHandleExpressionOrSourceBand(product) && isInDateRange(product) && intersectsTargetArea(product); }
ProductValidator { public boolean isValid(Product product) { return product != null && containsGeoCodingWithReverseOperationSupport(product) && fulfillsTimeConditions(product) && canHandleExpressionOrSourceBand(product) && isInDateRange(product) && intersectsTargetArea(product); } }
ProductValidator { public boolean isValid(Product product) { return product != null && containsGeoCodingWithReverseOperationSupport(product) && fulfillsTimeConditions(product) && canHandleExpressionOrSourceBand(product) && isInDateRange(product) && intersectsTargetArea(product); } ProductValidator(String sourceBandName, String bandMathExpression, String validPixelExpression, ProductData.UTC startDate, ProductData.UTC endDate, Area targetArea, Logger logger); }
ProductValidator { public boolean isValid(Product product) { return product != null && containsGeoCodingWithReverseOperationSupport(product) && fulfillsTimeConditions(product) && canHandleExpressionOrSourceBand(product) && isInDateRange(product) && intersectsTargetArea(product); } ProductValidator(String sourceBandName, String bandMathExpression, String validPixelExpression, ProductData.UTC startDate, ProductData.UTC endDate, Area targetArea, Logger logger); boolean isValid(Product product); }
ProductValidator { public boolean isValid(Product product) { return product != null && containsGeoCodingWithReverseOperationSupport(product) && fulfillsTimeConditions(product) && canHandleExpressionOrSourceBand(product) && isInDateRange(product) && intersectsTargetArea(product); } ProductValidator(String sourceBandName, String bandMathExpression, String validPixelExpression, ProductData.UTC startDate, ProductData.UTC endDate, Area targetArea, Logger logger); boolean isValid(Product product);  }