Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testJoinWithEmptyStringElements (0.63 sec)

  1. src/test/java/jcifs/internal/util/StringUtilTest.java

            String result = StringUtil.join(",", null, null, null);
            assertEquals("null,null,null", result);
        }
    
        @Test
        @DisplayName("Should handle empty string elements")
        void testJoinWithEmptyStringElements() {
            String result = StringUtil.join(",", "", "middle", "");
            // First element is empty string (sb becomes "")
            // Second: sb.length() is 0, no delimiter, append "middle" (sb becomes "middle")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
Back to top