Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testBodyStringAfterStreamThrowsException (1.13 sec)

  1. src/test/java/org/codelibs/curl/CurlRequestTest.java

            assertSame(request, result); // Fluent API
            assertNull(request.body()); // body() returns String body, not stream
        }
    
        @Test
        public void testBodyStringAfterStreamThrowsException() {
            CurlRequest request = new CurlRequest(Method.POST, "https://example.com");
            InputStream stream = new ByteArrayInputStream("test data".getBytes());
            request.body(stream);
    
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top