Skip to content

Commit 7a96c0d

Browse files
elharogarydgregory
andauthored
[CODEC-263] test for user reported issue (#240)
* test for user reported issue * test isBase64 * Add Javadoc * Fix whitespace --------- Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com>
1 parent 09c7a8a commit 7a96c0d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/test/java/org/apache/commons/codec/binary/Base64Test.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,14 @@ public void testUrlSafe() {
14031403

14041404
}
14051405

1406+
/**
1407+
* Tests <a href="https://issues.apache.org/jira/browse/CODEC-263">CODEC-263</a>.
1408+
*/
1409+
public void testCodec263() {
1410+
Base64.decodeBase64("publishMessage");
1411+
assertTrue(Base64.isBase64("publishMessage"));
1412+
}
1413+
14061414
/**
14071415
* Base64 encoding of UUID's is a common use-case, especially in URL-SAFE
14081416
* mode. This test case ends up being the "URL-SAFE" JUnit's.

0 commit comments

Comments
 (0)