@Test public void create() { FactoryOptions options = new FactoryOptions(emptyMap()); List<MediaTypeValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(2); assertThat(validators).hasOnlyElementsOfTypes( MediaTypeSchemaValidator.class, MediaTypeEncodingValidator.class ); }
@Override public List<MediaTypeValidator> create(FactoryOptions options) { List<MediaTypeValidator> validators = new ArrayList<>(); validators.add(new MediaTypeSchemaValidator(schemaValidatorFactory.create(options))); validators.add(new MediaTypeEncodingValidator(encodingValidatorFactory.create(options))); return Collections.unmodifiableList(validators); }
DefaultMediaTypeValidatorFactory implements MediaTypeValidatorFactory { @Override public List<MediaTypeValidator> create(FactoryOptions options) { List<MediaTypeValidator> validators = new ArrayList<>(); validators.add(new MediaTypeSchemaValidator(schemaValidatorFactory.create(options))); validators.add(new MediaTypeEncodingValidator(encodingValidatorFactory.create(options))); return Collections.unmodifiableList(validators); } }
DefaultMediaTypeValidatorFactory implements MediaTypeValidatorFactory { @Override public List<MediaTypeValidator> create(FactoryOptions options) { List<MediaTypeValidator> validators = new ArrayList<>(); validators.add(new MediaTypeSchemaValidator(schemaValidatorFactory.create(options))); validators.add(new MediaTypeEncodingValidator(encodingValidatorFactory.create(options))); return Collections.unmodifiableList(validators); } DefaultMediaTypeValidatorFactory(
      SchemaValidatorFactory schemaValidatorFactory,
      EncodingValidatorFactory encodingValidatorFactory); }
DefaultMediaTypeValidatorFactory implements MediaTypeValidatorFactory { @Override public List<MediaTypeValidator> create(FactoryOptions options) { List<MediaTypeValidator> validators = new ArrayList<>(); validators.add(new MediaTypeSchemaValidator(schemaValidatorFactory.create(options))); validators.add(new MediaTypeEncodingValidator(encodingValidatorFactory.create(options))); return Collections.unmodifiableList(validators); } DefaultMediaTypeValidatorFactory(
      SchemaValidatorFactory schemaValidatorFactory,
      EncodingValidatorFactory encodingValidatorFactory); @Override List<MediaTypeValidator> create(FactoryOptions options); }
DefaultMediaTypeValidatorFactory implements MediaTypeValidatorFactory { @Override public List<MediaTypeValidator> create(FactoryOptions options) { List<MediaTypeValidator> validators = new ArrayList<>(); validators.add(new MediaTypeSchemaValidator(schemaValidatorFactory.create(options))); validators.add(new MediaTypeEncodingValidator(encodingValidatorFactory.create(options))); return Collections.unmodifiableList(validators); } DefaultMediaTypeValidatorFactory(
      SchemaValidatorFactory schemaValidatorFactory,
      EncodingValidatorFactory encodingValidatorFactory); @Override List<MediaTypeValidator> create(FactoryOptions options);  }