Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for CurlException (0.5 seconds)

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

            request.param("key", "value");
    
            try {
                request.encoding("ISO-8859-1");
                fail("Expected CurlException");
            } catch (CurlException e) {
                assertTrue(e.getMessage().contains("must be called before param method"));
            }
        }
    
        @Test
        public void testThresholdMethod() {
    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)
  2. src/test/java/org/codelibs/curl/CurlResponseTest.java

            try {
                response.getContentAsStream();
                fail("Expected CurlException");
            } catch (CurlException e) {
                assertTrue(e.getMessage().contains("The content does not exist"));
                assertSame(exception, e.getCause());
            } catch (IOException e) {
                fail("Should throw CurlException, not IOException");
            }
        }
    
        @Test
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 17.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/curl/CurlRequest.java

         *
         * @param encoding the encoding
         * @return this CurlRequest instance
         * @throws CurlException if the method is called after the param method
         */
        public CurlRequest encoding(final String encoding) {
            if (paramList != null) {
                throw new CurlException("This method must be called before param method.");
            }
            this.encoding = encoding;
            return this;
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 19.7K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

                throw new IOException("Simulated connection failure");
            });
    
            // ## Act & Assert ##
            try {
                req.execute();
                fail("Should throw CurlException");
            } catch (CurlException e) {
                assertTrue(e.getMessage().contains("Failed to"));
                assertNotNull(e.getCause());
            }
        }
    
        @Test
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 44.1K bytes
    - Click Count (0)
Back to Top