@Test public void create() { FactoryOptions options = new FactoryOptions(emptyMap()); List<EncodingValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(1); assertThat(validators).hasOnlyElementsOfTypes( EncodingHeadersValuesValidator.class ); }
@Override public List<EncodingValidator> create(FactoryOptions options) { List<EncodingValidator> validators = new ArrayList<>(); validators.add(new EncodingHeadersValuesValidator(headerValidatorFactory.create(options))); addEncodingHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); }
DefaultEncodingValidatorFactory implements EncodingValidatorFactory { @Override public List<EncodingValidator> create(FactoryOptions options) { List<EncodingValidator> validators = new ArrayList<>(); validators.add(new EncodingHeadersValuesValidator(headerValidatorFactory.create(options))); addEncodingHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } }
DefaultEncodingValidatorFactory implements EncodingValidatorFactory { @Override public List<EncodingValidator> create(FactoryOptions options) { List<EncodingValidator> validators = new ArrayList<>(); validators.add(new EncodingHeadersValuesValidator(headerValidatorFactory.create(options))); addEncodingHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultEncodingValidatorFactory(
      HeaderValidatorFactory headerValidatorFactory); }
DefaultEncodingValidatorFactory implements EncodingValidatorFactory { @Override public List<EncodingValidator> create(FactoryOptions options) { List<EncodingValidator> validators = new ArrayList<>(); validators.add(new EncodingHeadersValuesValidator(headerValidatorFactory.create(options))); addEncodingHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultEncodingValidatorFactory(
      HeaderValidatorFactory headerValidatorFactory); @Override List<EncodingValidator> create(FactoryOptions options); }
DefaultEncodingValidatorFactory implements EncodingValidatorFactory { @Override public List<EncodingValidator> create(FactoryOptions options) { List<EncodingValidator> validators = new ArrayList<>(); validators.add(new EncodingHeadersValuesValidator(headerValidatorFactory.create(options))); addEncodingHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultEncodingValidatorFactory(
      HeaderValidatorFactory headerValidatorFactory); @Override List<EncodingValidator> create(FactoryOptions options);  }