Misspelling rule name only causes warning now
This commit is contained in:
@ -99,7 +99,7 @@ public class CLITest extends BaseCLITest {
|
|||||||
@Test
|
@Test
|
||||||
public void testWrongRulename() {
|
public void testWrongRulename() {
|
||||||
String[] args = { "-d", SOURCE_FOLDER, "-f", "text", "-R", "category/java/design.xml/ThisRuleDoesNotExist", };
|
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?"
|
assertThat(log, containsString("No rules found. Maybe you misspelled a rule name?"
|
||||||
+ " (category/java/design.xml/ThisRuleDoesNotExist)"));
|
+ " (category/java/design.xml/ThisRuleDoesNotExist)"));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user