@Test public void create1() { FactoryOptions options = new FactoryOptions(singletonMap(PathsKeyCaseValidator.CONFIG_KEY, "upper-camel-case")); List<PathsValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(2); assertThat(validators).hasOnlyElementsOfTypes( PathsPathItemsValidator.class, PathsKeyCaseValidator.class ); }
@Override public List<PathsValidator> create(FactoryOptions options) { List<PathsValidator> validators = new ArrayList<>(); validators.add(new PathsPathItemsValidator(pathItemValidatorFactory.create(options))); addPathsKeyCaseValidator(validators, options); return Collections.unmodifiableList(validators); }
DefaultPathsValidatorFactory implements PathsValidatorFactory { @Override public List<PathsValidator> create(FactoryOptions options) { List<PathsValidator> validators = new ArrayList<>(); validators.add(new PathsPathItemsValidator(pathItemValidatorFactory.create(options))); addPathsKeyCaseValidator(validators, options); return Collections.unmodifiableList(validators); } }
DefaultPathsValidatorFactory implements PathsValidatorFactory { @Override public List<PathsValidator> create(FactoryOptions options) { List<PathsValidator> validators = new ArrayList<>(); validators.add(new PathsPathItemsValidator(pathItemValidatorFactory.create(options))); addPathsKeyCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultPathsValidatorFactory(
      PathItemValidatorFactory pathItemValidatorFactory); }
DefaultPathsValidatorFactory implements PathsValidatorFactory { @Override public List<PathsValidator> create(FactoryOptions options) { List<PathsValidator> validators = new ArrayList<>(); validators.add(new PathsPathItemsValidator(pathItemValidatorFactory.create(options))); addPathsKeyCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultPathsValidatorFactory(
      PathItemValidatorFactory pathItemValidatorFactory); @Override List<PathsValidator> create(FactoryOptions options); }
DefaultPathsValidatorFactory implements PathsValidatorFactory { @Override public List<PathsValidator> create(FactoryOptions options) { List<PathsValidator> validators = new ArrayList<>(); validators.add(new PathsPathItemsValidator(pathItemValidatorFactory.create(options))); addPathsKeyCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultPathsValidatorFactory(
      PathItemValidatorFactory pathItemValidatorFactory); @Override List<PathsValidator> create(FactoryOptions options);  }