Search Options

Results per page
Sort
Preferred Languages
Advance

Results 951 - 960 of 2,174 for Exception (0.1 sec)

  1. src/test/java/org/codelibs/fess/helper/ProtocolHelperTest.java

            protocolHelper.init();
    
            try {
                protocolHelper.isValidWebProtocol(null);
                fail("Should throw exception for null URL");
            } catch (Exception e) {
                // Expected
                assertNotNull(e);
            }
        }
    
        public void test_isValidFileProtocol_nullUrl() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

                            } catch (IllegalStateException e) {
                                // Expected if closed
                            }
                        }
                    } catch (Exception e) {
                        fail("Unexpected exception: " + e.getMessage());
                    } finally {
                        completeLatch.countDown();
                    }
                }).start();
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/SynchronousGet.java

    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.Response;
    
    public final class SynchronousGet {
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/AnnotationUtilTest.java

    import java.util.Map;
    
    import org.junit.Test;
    
    /**
     * @author higa
     */
    public class AnnotationUtilTest {
    
        /**
         * @throws Exception
         */
        @Hoge(bbb = "3")
        @Test
        public void testGetProperties() throws Exception {
            final Method m = ClassUtil.getMethod(getClass(), "testGetProperties");
            final Annotation anno = m.getAnnotation(Hoge.class);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/security/MessageDigestUtilTest.java

    package org.codelibs.core.security;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertNull;
    import static org.junit.Assert.assertTrue;
    
    import org.codelibs.core.exception.EmptyArgumentException;
    import org.codelibs.core.exception.NoSuchAlgorithmRuntimeException;
    import org.junit.Test;
    
    /**
     * @author shinsuke
     *
     */
    public class MessageDigestUtilTest {
        /**
         *
         */
        @Test
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

        }
    
        /**
         * Encode the JSP content.
         * @param value The value.
         * @return The encoded value.
         */
        public static String encodeJsp(final String value) {
            return value.replace("<% try{ %>", TRY_STATEMENT)
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/DfsImplTest.java

            dfsImpl = new DfsImpl(mockContext);
        }
    
        // Test for the constructor
        @Test
        void testDfsImplConstructor() {
            // The constructor is called in setUp(), so if no exception is thrown, this test passes.
            assertNotNull(dfsImpl);
        }
    
        // Tests for isTrustedDomain
        @Test
        void testIsTrustedDomain_DfsDisabled() throws SmbAuthException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java

                assertEquals("xyz", getIdMethod.invoke(crawlingConfigHelper, "Dxyz"));
            } catch (Exception e) {
                fail("Failed to test getId method: " + e.getMessage());
            }
        }
    
        public void test_getCrawlingConfig_cacheExceptionHandling() {
            // Register a service that throws exception
            ComponentUtil.register(new WebConfigService() {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 34.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                assertFalse(testBlock.isReceived());
            }
    
            @Test
            @DisplayName("Test exception state")
            void testExceptionState() {
                Exception testException = new RuntimeException("Test error");
    
                assertNull(testBlock.getException());
    
                testBlock.exception(testException);
                assertEquals(testException, testBlock.getException());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTreeConnection.java

                    last = e;
                }
            }
    
            if (last != null) {
                log.debug("All attempts have failed, last exception", last);
                throw last;
            }
            throw new SmbException("All attempts failed, but no exception");
        }
    
        private <T extends CommonServerMessageBlockResponse> T send0(final SmbResourceLocatorImpl loc,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
Back to top