@Test public void create() { FactoryOptions options = new FactoryOptions(emptyMap()); List<ResponsesValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(1); assertThat(validators).hasOnlyElementsOfTypes( ResponsesResponsesValidator.class ); }
@Override public List<ResponsesValidator> create(FactoryOptions options) { List<ResponsesValidator> validators = new ArrayList<>(); validators.add(new ResponsesResponsesValidator(responseValidatorFactory.create(options))); return Collections.unmodifiableList(validators); }
DefaultResponsesValidatorFactory implements ResponsesValidatorFactory { @Override public List<ResponsesValidator> create(FactoryOptions options) { List<ResponsesValidator> validators = new ArrayList<>(); validators.add(new ResponsesResponsesValidator(responseValidatorFactory.create(options))); return Collections.unmodifiableList(validators); } }
DefaultResponsesValidatorFactory implements ResponsesValidatorFactory { @Override public List<ResponsesValidator> create(FactoryOptions options) { List<ResponsesValidator> validators = new ArrayList<>(); validators.add(new ResponsesResponsesValidator(responseValidatorFactory.create(options))); return Collections.unmodifiableList(validators); } DefaultResponsesValidatorFactory(
      ResponseValidatorFactory responseValidatorFactory); }
DefaultResponsesValidatorFactory implements ResponsesValidatorFactory { @Override public List<ResponsesValidator> create(FactoryOptions options) { List<ResponsesValidator> validators = new ArrayList<>(); validators.add(new ResponsesResponsesValidator(responseValidatorFactory.create(options))); return Collections.unmodifiableList(validators); } DefaultResponsesValidatorFactory(
      ResponseValidatorFactory responseValidatorFactory); @Override List<ResponsesValidator> create(FactoryOptions options); }
DefaultResponsesValidatorFactory implements ResponsesValidatorFactory { @Override public List<ResponsesValidator> create(FactoryOptions options) { List<ResponsesValidator> validators = new ArrayList<>(); validators.add(new ResponsesResponsesValidator(responseValidatorFactory.create(options))); return Collections.unmodifiableList(validators); } DefaultResponsesValidatorFactory(
      ResponseValidatorFactory responseValidatorFactory); @Override List<ResponsesValidator> create(FactoryOptions options);  }