Skip to content

Commit ef72cbd

Browse files
committed
Wrong class was tested
1 parent 68199f1 commit ef72cbd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/test/java/org/apache/commons/codec/CharsetsTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import java.util.SortedSet;
2626
import java.util.TreeSet;
2727

28-
import org.apache.commons.io.Charsets;
2928
import org.junit.jupiter.api.Test;
3029

3130
/**
@@ -40,7 +39,12 @@ public static SortedSet<String> getAvailableCharsetNames() {
4039
}
4140

4241
public static Collection<Charset> getRequiredCharsets() {
43-
return Charsets.requiredCharsets().values();
42+
return org.apache.commons.io.Charsets.requiredCharsets().values();
43+
}
44+
45+
@Test
46+
void testDeprecatedConstructor() {
47+
new Charsets();
4448
}
4549

4650
@SuppressWarnings("deprecation")

0 commit comments

Comments
 (0)