You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/04/18 19:22:01 UTC

(commons-codec) branch master updated: [CODEC-263] test for user reported issue (#240)

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 7a96c0da [CODEC-263] test for user reported issue (#240)
7a96c0da is described below

commit 7a96c0da42ada5c36d6aab31704eb61c779e2da3
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Thu Apr 18 19:21:56 2024 +0000

    [CODEC-263] test for user reported issue (#240)
    
    * test for user reported issue
    
    * test isBase64
    
    * Add Javadoc
    
    * Fix whitespace
    
    ---------
    
    Co-authored-by: Gary Gregory <ga...@users.noreply.github.com>
---
 src/test/java/org/apache/commons/codec/binary/Base64Test.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/test/java/org/apache/commons/codec/binary/Base64Test.java b/src/test/java/org/apache/commons/codec/binary/Base64Test.java
index e801c919..0c1cbb92 100644
--- a/src/test/java/org/apache/commons/codec/binary/Base64Test.java
+++ b/src/test/java/org/apache/commons/codec/binary/Base64Test.java
@@ -1403,6 +1403,14 @@ public class Base64Test {
 
     }
 
+    /**
+     * Tests <a href="https://issues.apache.org/jira/browse/CODEC-263">CODEC-263</a>.
+     */
+    public void testCodec263() {
+      Base64.decodeBase64("publishMessage");
+      assertTrue(Base64.isBase64("publishMessage"));
+    }
+
     /**
      * Base64 encoding of UUID's is a common use-case, especially in URL-SAFE
      * mode. This test case ends up being the "URL-SAFE" JUnit's.