Skip to content

Commit

Permalink
test: deprecate test classes for deprecated source classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ParanoidUser committed Oct 15, 2024
1 parent 5bf281c commit fa8c899
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/apache/commons/lang3/CharEncodingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
/**
* Tests CharEncoding.
*
* @see CharEncoding
* @deprecated this test can be removed once the deprecated source class {@link org.apache.commons.lang3.CharEncoding} is removed.
*/
@SuppressWarnings("deprecation")
@Deprecated
public class CharEncodingTest extends AbstractLangTest {

private void assertSupportedEncoding(final String name) {
Expand Down
6 changes: 6 additions & 0 deletions src/test/java/org/apache/commons/lang3/FunctionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

/**
* Tests Functions.
*
* @deprecated this test can be removed once the deprecated source class {@link org.apache.commons.lang3.Functions} is removed.
*/
@Deprecated
public class FunctionsTest extends AbstractLangTest {

public static class CloseableObject {
Expand Down
6 changes: 6 additions & 0 deletions src/test/java/org/apache/commons/lang3/StreamsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
import org.junit.jupiter.api.function.Executable;
import org.xml.sax.SAXException;

/**
* Tests Streams.
*
* @deprecated this test can be removed once the deprecated source class {@link org.apache.commons.lang3.Streams} is removed.
*/
@Deprecated
public class StreamsTest extends AbstractLangTest {

protected <T extends Throwable> FailableConsumer<String, T> asIntConsumer(final T pThrowable) {
Expand Down

0 comments on commit fa8c899

Please sign in to comment.