Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testBytes (0.05 sec)

  1. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

         */
        public void testEncodeDecode_RoundTrip() throws Exception {
            // Test with ASCII text
            final String text = "Hello, World!";
            final byte[] textBytes = text.getBytes("UTF-8");
            final String encoded = Base64Util.encode(textBytes);
            final byte[] decoded = Base64Util.decode(encoded);
            assertEquals("Round trip should preserve data", text, new String(decoded, "UTF-8"));
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top