@Test public void create1() { FactoryOptions options = new FactoryOptions(singletonMap(SchemaTitleRequiredValidator.CONFIG_KEY, "true")); List<SchemaValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(1); assertThat(validators).hasOnlyElementsOfTypes( SchemaTitleRequiredValidator.class ); }
@Override public List<SchemaValidator> create(FactoryOptions options) { ArrayList<SchemaValidator> validators = new ArrayList<>(); addSchemaTitleRequiredValidator(validators, options); addSchemaPropertiesKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); }
DefaultSchemaValidatorFactory implements SchemaValidatorFactory { @Override public List<SchemaValidator> create(FactoryOptions options) { ArrayList<SchemaValidator> validators = new ArrayList<>(); addSchemaTitleRequiredValidator(validators, options); addSchemaPropertiesKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } }
DefaultSchemaValidatorFactory implements SchemaValidatorFactory { @Override public List<SchemaValidator> create(FactoryOptions options) { ArrayList<SchemaValidator> validators = new ArrayList<>(); addSchemaTitleRequiredValidator(validators, options); addSchemaPropertiesKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); }  }
DefaultSchemaValidatorFactory implements SchemaValidatorFactory { @Override public List<SchemaValidator> create(FactoryOptions options) { ArrayList<SchemaValidator> validators = new ArrayList<>(); addSchemaTitleRequiredValidator(validators, options); addSchemaPropertiesKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); }  @Override List<SchemaValidator> create(FactoryOptions options); }
DefaultSchemaValidatorFactory implements SchemaValidatorFactory { @Override public List<SchemaValidator> create(FactoryOptions options) { ArrayList<SchemaValidator> validators = new ArrayList<>(); addSchemaTitleRequiredValidator(validators, options); addSchemaPropertiesKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); }  @Override List<SchemaValidator> create(FactoryOptions options);  }