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 <elh...@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 <garydgreg...@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.