Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testBodyStringAfterStreamThrowsException (0.16 seconds)

  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);
    
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 24.7K bytes
    - Click Count (0)
Back to Top