@Test public void create1() { FactoryOptions options = new FactoryOptions( singletonMap(ResponseHeadersKeysCaseValidator.CONFIG_KEY, "upper-camel-case")); List<ResponseValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(3); assertThat(validators).hasOnlyElementsOfTypes( ResponseContentValidator.class, ResponseHeadersValuesValidator.class, ResponseHeadersKeysCaseValidator.class ); }
@Override public List<ResponseValidator> create(FactoryOptions options) { List<ResponseValidator> validators = new ArrayList<>(); validators.add(new ResponseContentValidator(mediaTypeValidatorFactory.create(options))); validators.add(new ResponseHeadersValuesValidator(headerValidatorFactory.create(options))); addResponseHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); }
DefaultResponseValidatorFactory implements ResponseValidatorFactory { @Override public List<ResponseValidator> create(FactoryOptions options) { List<ResponseValidator> validators = new ArrayList<>(); validators.add(new ResponseContentValidator(mediaTypeValidatorFactory.create(options))); validators.add(new ResponseHeadersValuesValidator(headerValidatorFactory.create(options))); addResponseHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } }
DefaultResponseValidatorFactory implements ResponseValidatorFactory { @Override public List<ResponseValidator> create(FactoryOptions options) { List<ResponseValidator> validators = new ArrayList<>(); validators.add(new ResponseContentValidator(mediaTypeValidatorFactory.create(options))); validators.add(new ResponseHeadersValuesValidator(headerValidatorFactory.create(options))); addResponseHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultResponseValidatorFactory(
      MediaTypeValidatorFactory mediaTypeValidatorFactory,
      HeaderValidatorFactory headerValidatorFactory); }
DefaultResponseValidatorFactory implements ResponseValidatorFactory { @Override public List<ResponseValidator> create(FactoryOptions options) { List<ResponseValidator> validators = new ArrayList<>(); validators.add(new ResponseContentValidator(mediaTypeValidatorFactory.create(options))); validators.add(new ResponseHeadersValuesValidator(headerValidatorFactory.create(options))); addResponseHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultResponseValidatorFactory(
      MediaTypeValidatorFactory mediaTypeValidatorFactory,
      HeaderValidatorFactory headerValidatorFactory); @Override List<ResponseValidator> create(FactoryOptions options); }
DefaultResponseValidatorFactory implements ResponseValidatorFactory { @Override public List<ResponseValidator> create(FactoryOptions options) { List<ResponseValidator> validators = new ArrayList<>(); validators.add(new ResponseContentValidator(mediaTypeValidatorFactory.create(options))); validators.add(new ResponseHeadersValuesValidator(headerValidatorFactory.create(options))); addResponseHeadersKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultResponseValidatorFactory(
      MediaTypeValidatorFactory mediaTypeValidatorFactory,
      HeaderValidatorFactory headerValidatorFactory); @Override List<ResponseValidator> create(FactoryOptions options);  }