Skip to content

Commit c10f11c

Browse files
committed
JIRA: CODEC-97 Base64 default constructor behaviour changed to enable chunking in 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@928109 13f79535-47bb-0310-9956-ffa450edef68
1 parent bcfef89 commit c10f11c

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,4 +547,8 @@ public static void main(String[] args) {
547547
}
548548

549549
}
550+
public void testObjectEncode() throws Exception {
551+
Base64 b64 = new Base64();
552+
assertEquals("SGVsbG8gV29ybGQ=", new String(b64.encode("Hello World".getBytes("UTF-8"))));
553+
}
550554
}

xdocs/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
</properties>
2424
<body>
2525
<release version="TBA" date="TBA" description="TBC">
26+
<action dev="sebb" type="fix" issue="CODEC-97">
27+
Base64 default constructor behaviour changed to enable chunking in 1.4
28+
</action>
2629
<action dev="sebb" type="fix" issue="CODEC-89">
2730
new Base64().encode() appends a CRLF, and chunks results into 76 character lines
2831
</action>

0 commit comments

Comments
 (0)