[core] Deprecate BaseCPDCLITest

This commit is contained in:
Andreas Dangel
2023-01-17 10:58:53 +01:00
parent 3dcecb6b55
commit aa06344d87
2 changed files with 10 additions and 3 deletions

View File

@@ -31,9 +31,10 @@ This is a {{ site.pmd.release_type }} release.
{% jdoc core::AbstractConfiguration#getSourceEncoding() %} and
{% jdoc core::AbstractConfiguration#setSourceEncoding(java.lang.String) %} instead. Both are available
for `CPDConfiguration` which extends `AbstractConfiguration`.
* {% jdoc test::cli.BaseCLITest %} has been 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.
* {% jdoc test::cli.BaseCLITest %} and {% jdoc test::cli.BaseCPDCLITest %} have been 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.
##### Internal APIs

View File

@@ -15,6 +15,12 @@ import org.junit.Before;
import net.sourceforge.pmd.cpd.CPD;
import net.sourceforge.pmd.cpd.CPDCommandLineInterface;
/**
* @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.
*/
@Deprecated
public abstract class BaseCPDCLITest {
private ByteArrayOutputStream bufferStdout;
private PrintStream originalStdout;