@Test public void should_fail_on_invalid_xml() { Reader reader = new StringReader("not xml"); importer.importProfile(reader, messages); assertThat(messages.getErrors()).hasSize(1); }
@Override public RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages) { PmdRuleset pmdRuleset = parsePmdRuleset(pmdConfigurationFile, messages); return createRuleProfile(pmdRuleset, messages); }
PmdProfileImporter extends ProfileImporter { @Override public RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages) { PmdRuleset pmdRuleset = parsePmdRuleset(pmdConfigurationFile, messages); return createRuleProfile(pmdRuleset, messages); } }
PmdProfileImporter extends ProfileImporter { @Override public RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages) { PmdRuleset pmdRuleset = parsePmdRuleset(pmdConfigurationFile, messages); return createRuleProfile(pmdRuleset, messages); } PmdProfileImporter(RuleFinder ruleFinder); }
PmdProfileImporter extends ProfileImporter { @Override public RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages) { PmdRuleset pmdRuleset = parsePmdRuleset(pmdConfigurationFile, messages); return createRuleProfile(pmdRuleset, messages); } PmdProfileImporter(RuleFinder ruleFinder); @Override RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages); }
PmdProfileImporter extends ProfileImporter { @Override public RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages) { PmdRuleset pmdRuleset = parsePmdRuleset(pmdConfigurationFile, messages); return createRuleProfile(pmdRuleset, messages); } PmdProfileImporter(RuleFinder ruleFinder); @Override RulesProfile importProfile(Reader pmdConfigurationFile, ValidationMessages messages);  }