@Test public void test() { assertEquals(expected, paymentConfigurationDigitalProductFilter.isValid(configuration, cart)); }
@Override public boolean isValid(WirecardPaymentConfigurationModel configuration, AbstractOrderModel order) { return restrictionDisabled(configuration) || physicalProductOnly(order); }
PaymentConfigurationDigitalProductFilter implements PaymentConfigurationFilter { @Override public boolean isValid(WirecardPaymentConfigurationModel configuration, AbstractOrderModel order) { return restrictionDisabled(configuration) || physicalProductOnly(order); } }
PaymentConfigurationDigitalProductFilter implements PaymentConfigurationFilter { @Override public boolean isValid(WirecardPaymentConfigurationModel configuration, AbstractOrderModel order) { return restrictionDisabled(configuration) || physicalProductOnly(order); }  }
PaymentConfigurationDigitalProductFilter implements PaymentConfigurationFilter { @Override public boolean isValid(WirecardPaymentConfigurationModel configuration, AbstractOrderModel order) { return restrictionDisabled(configuration) || physicalProductOnly(order); }  @Override boolean isValid(WirecardPaymentConfigurationModel configuration, AbstractOrderModel order); }
PaymentConfigurationDigitalProductFilter implements PaymentConfigurationFilter { @Override public boolean isValid(WirecardPaymentConfigurationModel configuration, AbstractOrderModel order) { return restrictionDisabled(configuration) || physicalProductOnly(order); }  @Override boolean isValid(WirecardPaymentConfigurationModel configuration, AbstractOrderModel order);  }