@Test public void create() { FactoryOptions options = new FactoryOptions(emptyMap()); List<PathsValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(1); assertThat(validators).hasOnlyElementsOfTypes( PathsPathItemsValidator.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);  }