Skip to content

Commit

Permalink
Issue #2909 - Replace B64Code with java.util.Base64
Browse files Browse the repository at this point in the history
+ Address Mime Encoding behavior difference detected in testcase

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
  • Loading branch information
joakime authored and gregw committed May 15, 2019
1 parent b44ecc9 commit 73d7eaa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ public void testEncode_RFC2045()

// Standard Java way
String javaBase64 = Base64.getMimeEncoder().encodeToString(rawInputBytes);
assertThat(javaBase64, is(expected));
// NOTE: MIME standard for encoding should not include final "\r\n"
assertThat(javaBase64 + "\r\n", is(expected));
}

@Test
Expand Down

0 comments on commit 73d7eaa

Please sign in to comment.