Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 640 for handled (0.9 sec)

  1. src/test/java/jcifs/spnego/NegTokenInitTest.java

        class EdgeCasesTests {
    
            @Test
            @DisplayName("Parse handles empty token gracefully")
            void testParseEmptyToken() {
                byte[] emptyToken = new byte[0];
                assertThrows(IOException.class, () -> new NegTokenInit(emptyToken));
            }
    
            @Test
            @DisplayName("Parse handles null mechanisms array")
            void testNullMechanisms() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                    }
                });
            }
    
            assertTrue(latch.await(10, TimeUnit.SECONDS), "Concurrent operations should complete");
            executor.shutdown();
    
            // Circuit breaker should have handled concurrent operations
            assertTrue(successCount.get() > 0, "Should have some successful operations");
            assertTrue(failureCount.get() > 0, "Should have some failed operations");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/RelatedContentHelper.java

    public class RelatedContentHelper extends AbstractConfigHelper {
    
        /**
         * Default constructor for RelatedContentHelper.
         * The constructor does not perform any initialization logic as the actual
         * initialization is handled by the {@link #init()} method annotated with
         * {@code @PostConstruct}.
         */
        public RelatedContentHelper() {
            super();
        }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java

            }
        }
    
        /**
         * Test that try-with-resources handles null InputStream correctly.
         * Verifies that null InputStream doesn't cause NullPointerException during close.
         */
        @Test
        public void testTryWithResources_nullInputStreamSafety() {
            // This test demonstrates that try-with-resources handles null safely
            try (InputStream is = null) {
                if (is == null) {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/NbtAddress.java

    import jcifs.NetbiosName;
    
    /**
     * This class represents a NetBIOS over TCP/IP address. Under normal
     * conditions, users of jCIFS need not be concerned with this class as
     * name resolution and session services are handled internally by the smb package.
     *
     *
     *  * Applications can use the methods <code>getLocalHost</code>,
     * <code>getByName</code>, and
     * <code>getAllByAddress</code> to create a new NbtAddress instance. This
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/util/SMBUtilTest.java

                        - SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601;
                assertEquals(expectedTime, readTime);
            }
    
            // Test zero time separately - it's handled specially
            SMBUtil.writeTime(0L, buffer, 0);
            long readTime = SMBUtil.readTime(buffer, 0);
            // When writing 0, it writes 0 directly, and when reading 0, it returns negative offset
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                }
            } finally {
                correctAuth.close();
                wrongAuth.close();
            }
        }
    
        /**
         * Test that null and empty password comparisons are handled securely.
         */
        @Test
        public void testNullAndEmptyPasswordSecurity() {
            NtlmPasswordAuthenticator auth1 = new NtlmPasswordAuthenticator("domain", "user", (String) null);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                } else {
                    // Empty string is handled
                    DfsReferralDataImpl impl = createInitializedDfsReferralDataImpl();
                    assertDoesNotThrow(() -> impl.fixupHost(fqdn));
                }
            }
    
            @ParameterizedTest
            @NullAndEmptySource
            @DisplayName("Should handle null and empty domain in fixupDomain")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/LmhostsTest.java

            assertNotNull(table.get(name1));
            assertNotNull(table.get(name2));
        }
    
        @Test
        void testPopulateWithIncludeDirective() throws Exception {
            // Test that #INCLUDE directive is handled (even if the include fails)
            String content = "#INCLUDE \\\\server\\share\\lmhosts\n" + "192.168.1.100 MAINHOST\n";
    
            // Mock SmbFileInputStream to simulate include file
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java

            URL url = new URL("storage://mybucket/path/file%20with%20spaces.txt");
            Handler handler = new Handler();
            URLConnection conn = handler.openConnection(url);
    
            Handler.StorageURLConnection storageConn = (Handler.StorageURLConnection) conn;
    
            assertEquals("mybucket", getField(storageConn, "bucketName"));
            // URL decoding is handled by URL class
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 14.4K bytes
    - Viewed (0)
Back to top