From 8bf26ec3d4207c50b732997a664f5323c222d89e Mon Sep 17 00:00:00 2001 From: Yass Almardoud Date: Wed, 17 Jul 2024 09:54:53 +0200 Subject: [PATCH] #479 Updated XmlRuleParserPluginTest.java --- .../core/rule/api/model/XmlRuleParserPluginTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/rule/src/test/java/com/buschmais/jqassistant/core/rule/api/model/XmlRuleParserPluginTest.java b/core/rule/src/test/java/com/buschmais/jqassistant/core/rule/api/model/XmlRuleParserPluginTest.java index 14dd77f33..817003da5 100644 --- a/core/rule/src/test/java/com/buschmais/jqassistant/core/rule/api/model/XmlRuleParserPluginTest.java +++ b/core/rule/src/test/java/com/buschmais/jqassistant/core/rule/api/model/XmlRuleParserPluginTest.java @@ -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("".getBytes())); assertThat(xmlRuleParserPlugin.accepts(mockRuleSource)).isFalse(); }