Skip to content

Commit

Permalink
#479 Updated XmlRuleParserPluginTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
yaseno2186 committed Jul 17, 2024
1 parent 433f354 commit 8bf26ec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ void testAccepts_InvalidXmlFile_ReturnsFalse() throws IOException {
XmlRuleParserPlugin xmlRuleParserPlugin = new XmlRuleParserPlugin();
RuleSource mockRuleSource = mock(RuleSource.class);

doReturn("report.xml").when(mockRuleSource)
doReturn("jqassistant-report.xml").when(mockRuleSource)
.getId();
when(mockRuleSource.getInputStream()).thenReturn(new ByteArrayInputStream("<jqassistant-report>".getBytes()));
assertThat(xmlRuleParserPlugin.accepts(mockRuleSource)).isFalse();
}

Expand Down

0 comments on commit 8bf26ec

Please sign in to comment.