commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [commons-codec] branch release updated: [CODEC-277] Don't reload standard Charsets in org.apache.commons.codec.Charsets.
Date Mon, 30 Dec 2019 14:30:08 GMT
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/commons-codec.git


The following commit(s) were added to refs/heads/release by this push:
     new 84efbac  [CODEC-277] Don't reload standard Charsets in org.apache.commons.codec.Charsets.
84efbac is described below

commit 84efbacaee58c6232223f6125682de89c09e5ba9
Author: Gary Gregory <garydgregory@gmail.com>
AuthorDate: Mon Dec 30 09:30:04 2019 -0500

    [CODEC-277] Don't reload standard Charsets in
    org.apache.commons.codec.Charsets.
    
    Oops, still need to test Charsets.
---
 src/test/java/org/apache/commons/codec/CharsetsTest.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/test/java/org/apache/commons/codec/CharsetsTest.java b/src/test/java/org/apache/commons/codec/CharsetsTest.java
index 8272ccd..246062a 100644
--- a/src/test/java/org/apache/commons/codec/CharsetsTest.java
+++ b/src/test/java/org/apache/commons/codec/CharsetsTest.java
@@ -39,32 +39,32 @@ public class CharsetsTest {
 
     @Test
     public void testIso8859_1() {
-        Assert.assertEquals("ISO-8859-1", StandardCharsets.ISO_8859_1.name());
+        Assert.assertEquals("ISO-8859-1", Charsets.ISO_8859_1.name());
     }
 
     @Test
     public void testUsAscii() {
-        Assert.assertEquals("US-ASCII", StandardCharsets.US_ASCII.name());
+        Assert.assertEquals("US-ASCII", Charsets.US_ASCII.name());
     }
 
     @Test
     public void testUtf16() {
-        Assert.assertEquals("UTF-16", StandardCharsets.UTF_16.name());
+        Assert.assertEquals("UTF-16", Charsets.UTF_16.name());
     }
 
     @Test
     public void testUtf16Be() {
-        Assert.assertEquals("UTF-16BE", StandardCharsets.UTF_16BE.name());
+        Assert.assertEquals("UTF-16BE", Charsets.UTF_16BE.name());
     }
 
     @Test
     public void testUtf16Le() {
-        Assert.assertEquals("UTF-16LE", StandardCharsets.UTF_16LE.name());
+        Assert.assertEquals("UTF-16LE", Charsets.UTF_16LE.name());
     }
 
     @Test
     public void testUtf8() {
-        Assert.assertEquals("UTF-8", StandardCharsets.UTF_8.name());
+        Assert.assertEquals("UTF-8", Charsets.UTF_8.name());
     }
 
 }


Mime
View raw message