Misspelling rule name only causes warning now

This commit is contained in:
Clément Fournier
2022-03-05 15:22:25 +01:00
parent 04b05e208f
commit 80e1265fa1

View File

@ -99,7 +99,7 @@ public class CLITest extends BaseCLITest {
@Test
public void testWrongRulename() {
String[] args = { "-d", SOURCE_FOLDER, "-f", "text", "-R", "category/java/design.xml/ThisRuleDoesNotExist", };
String log = runTest(StatusCode.ERROR, args);
String log = runTest(StatusCode.OK, args);
assertThat(log, containsString("No rules found. Maybe you misspelled a rule name?"
+ " (category/java/design.xml/ThisRuleDoesNotExist)"));
}