Cleanup Cli tests

Remove some deprecated things left over by #4059
This commit is contained in:
Clément Fournier
2022-11-25 11:04:54 +01:00
parent 704102cd80
commit 675710d0e7
14 changed files with 235 additions and 429 deletions

View File

@ -1,31 +0,0 @@
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cli;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.Test;
import net.sourceforge.pmd.PMD.StatusCode;
/**
* @author Romain Pelisse <belaran@gmail.com>
*
*/
public class CLITest extends BaseCLITest {
@Test
public void useEcmaScript() {
String log = runTest(StatusCode.VIOLATIONS_FOUND,
"-d",
SOURCE_FOLDER,
"-f",
"xml",
"-R",
"rulesets/testing/js-rset1.xml",
"--no-progress",
"--debug");
assertThat(log, containsPattern("Adding file .*\\.js \\(lang: ecmascript ES6\\)"));
}
}