@Test public void create4() { FactoryOptions options = new FactoryOptions(singletonMap(TagMustBeReferencedValidator.CONFIG_KEY, "false")); List<TagValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(0); }
@Override public List<TagValidator> create(FactoryOptions options) { List<TagValidator> validators = new ArrayList<>(); addTagDescriptionRequiredValidator(validators, options); addTagMustBeReferencedValidator(validators, options); addTagNameCaseValidator(validators, options); return Collections.unmodifiableList(validators); }
DefaultTagValidatorFactory implements TagValidatorFactory { @Override public List<TagValidator> create(FactoryOptions options) { List<TagValidator> validators = new ArrayList<>(); addTagDescriptionRequiredValidator(validators, options); addTagMustBeReferencedValidator(validators, options); addTagNameCaseValidator(validators, options); return Collections.unmodifiableList(validators); } }
DefaultTagValidatorFactory implements TagValidatorFactory { @Override public List<TagValidator> create(FactoryOptions options) { List<TagValidator> validators = new ArrayList<>(); addTagDescriptionRequiredValidator(validators, options); addTagMustBeReferencedValidator(validators, options); addTagNameCaseValidator(validators, options); return Collections.unmodifiableList(validators); }  }
DefaultTagValidatorFactory implements TagValidatorFactory { @Override public List<TagValidator> create(FactoryOptions options) { List<TagValidator> validators = new ArrayList<>(); addTagDescriptionRequiredValidator(validators, options); addTagMustBeReferencedValidator(validators, options); addTagNameCaseValidator(validators, options); return Collections.unmodifiableList(validators); }  @Override List<TagValidator> create(FactoryOptions options); }
DefaultTagValidatorFactory implements TagValidatorFactory { @Override public List<TagValidator> create(FactoryOptions options) { List<TagValidator> validators = new ArrayList<>(); addTagDescriptionRequiredValidator(validators, options); addTagMustBeReferencedValidator(validators, options); addTagNameCaseValidator(validators, options); return Collections.unmodifiableList(validators); }  @Override List<TagValidator> create(FactoryOptions options);  }