XmlValidatorManager implements ValidatorManager { @Override public List<String> getValidatorsInfo() { final List<String> info = new ArrayList<>(); for (final String key : this.validators.keySet()) { info.add(key); } return info; } XmlValidatorManager(final Props props); @Override void loadValidators(final Props props, final Logger log); @Override String getCacheKey(final Project project, final File projectDir, final Props props); @Override Map<String, ValidationReport> validate(final Project project, final File projectDir, final Props additionalProps); @Override List<String> getValidatorsInfo(); static final String VALIDATOR_TAG; static final String CLASSNAME_ATTR; static final String ITEM_TAG; }
@Test public void testNoValidatorsDir() { final Props props = new Props(this.baseProps); final XmlValidatorManager manager = new XmlValidatorManager(props); assertEquals( "XmlValidatorManager should contain 0 validator when no xml configuration " + "file is present.", manager.getValidatorsInfo().size(), 0); }