forked from phoedos/pmd
[core] Deprecate BaseCPDCLITest
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user