Package net.sourceforge.pmd.cli
Class BaseCLITest
- java.lang.Object
-
- net.sourceforge.pmd.cli.BaseCLITest
-
@Deprecated public abstract class BaseCLITest extends Object
Deprecated.This is deprecated for removal without replacement. CLI tests should be done in pmd-core only (and in PMD7 in pmd-cli). Individual language modules shouldn't need to test the CLI integration logic again. Instead, the individual language modules should test their functionality as unit tests.- Author:
- Romain Pelisse <[email protected]>
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringSOURCE_FOLDERDeprecated.org.junit.contrib.java.lang.system.SystemErrRulesystemErrRuleDeprecated.org.junit.contrib.java.lang.system.SystemOutRulesystemOutRuleDeprecated.protected static StringTEST_OUPUT_DIRECTORYDeprecated.
-
Constructor Summary
Constructors Constructor Description BaseCLITest()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidcheckStatusCode(int expectedExitCode)Deprecated.UserunTest(StatusCode, String...)instead of checking the return code manuallystatic org.hamcrest.Matcher<String>containsPattern(String regex)Deprecated.protected voidcreateTestOutputFile(String filename)Deprecated.protected intgetStatusCode()Deprecated.UserunTest(StatusCode, String...)instead of checking the return code manuallyprotected voidrunPMDWith(String[] args)Deprecated.protected StringrunTest(int expectedExitCode, String... args)Deprecated.protected StringrunTest(String... args)Deprecated.Returns the log output.protected StringrunTest(String[] args, String testname)Deprecated.UserunTest(String...), note that it returns the log while this returns the name of a file containing the log.protected StringrunTest(String[] args, String testname, int expectedExitCode)Deprecated.UserunTest(StatusCode, String...), note that it returns the log while this returns the name of a file containing the log.protected StringrunTest(PMD.StatusCode expectedExitCode, String... args)Deprecated.static voidsetUp()Deprecated.
-
-
-
Field Detail
-
TEST_OUPUT_DIRECTORY
protected static final String TEST_OUPUT_DIRECTORY
Deprecated.- See Also:
- Constant Field Values
-
SOURCE_FOLDER
protected static final String SOURCE_FOLDER
Deprecated.- See Also:
- Constant Field Values
-
systemErrRule
public org.junit.contrib.java.lang.system.SystemErrRule systemErrRule
Deprecated.
-
systemOutRule
public org.junit.contrib.java.lang.system.SystemOutRule systemOutRule
Deprecated.
-
-
Method Detail
-
createTestOutputFile
protected void createTestOutputFile(String filename)
Deprecated.
-
runTest
@Deprecated protected String runTest(String[] args, String testname)
Deprecated.UserunTest(String...), note that it returns the log while this returns the name of a file containing the log.
-
runTest
@Deprecated protected String runTest(String[] args, String testname, int expectedExitCode)
Deprecated.UserunTest(StatusCode, String...), note that it returns the log while this returns the name of a file containing the log.
-
runTest
@Deprecated protected String runTest(int expectedExitCode, String... args)
Deprecated.Returns the log output.
-
runTest
protected String runTest(PMD.StatusCode expectedExitCode, String... args)
Deprecated.
-
runPMDWith
@Deprecated protected void runPMDWith(String[] args)
Deprecated.
-
checkStatusCode
@Deprecated protected void checkStatusCode(int expectedExitCode)
Deprecated.UserunTest(StatusCode, String...)instead of checking the return code manually
-
getStatusCode
@Deprecated protected int getStatusCode()
Deprecated.UserunTest(StatusCode, String...)instead of checking the return code manually
-
-