Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 62 for gracefully (2.7 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

            assertEquals(0, buffer[1], "Second byte must be null terminator");
        }
    
        @Test
        @DisplayName("writeBytesWireFormat handles empty string gracefully")
        void testWriteEmptyString() {
            when(mockConfig.getOemEncoding()).thenReturn("windows-1252");
            SmbComQueryInformation emptyCmd = new SmbComQueryInformation(mockConfig, "");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            assertTrue(rateLimiter.checkAttempt("user7", ip), "Should be allowed after manual unblock");
        }
    
        @Test
        public void testNullUsername() throws Exception {
            // Null username should be handled gracefully
            assertTrue(rateLimiter.checkAttempt(null, "192.168.1.8"), "Null username should be allowed");
    
            // Should not affect IP limiting
            rateLimiter.recordFailure(null, "192.168.1.8");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // but we can verify the context behaves correctly after wiping)
            // After wiping, operations that require keys should fail
    
            // Attempting to use the context after wiping should handle gracefully
            // Note: The actual implementation might throw an exception or handle differently
        }
    
        @Test
        @DisplayName("Should securely wipe keys when closing context")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/util/transport/Transport.java

                    final String msg = ex.getMessage();
                    final boolean timeout = msg != null && msg.equals("Read timed out");
                    /* If just a timeout, try to disconnect gracefully
                     */
                    final boolean hard = !timeout;
    
                    if (!timeout && LogStream.level >= 3) {
                        ex.printStackTrace(log);
                    }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. CLAUDE.md

    void addUrl(String url)         // Add URL to queue
    void cleanup(String sessionId)  // Clean up session
    void stop()                     // Stop gracefully
    ```
    
    **Key Fields**: `crawlerContext`, `urlFilter`, `intervalController`, `clientFactory`, `ruleManager`
    
    ### CrawlerContext (`CrawlerContext.java`)
    
    Execution context and configuration.
    
    **Important Fields**:
    ```java
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 28 17:31:34 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/MsrpcDfsRootEnumTest.java

            assertEquals("single_share", entries[0].getName());
            assertEquals(8, entries[0].getType()); // TYPE_SHARE constant value
        }
    
        @Test
        @DisplayName("getEntries should handle null DFS names gracefully")
        void testGetEntries_nullNames() throws Exception {
            // Create array with null name entries
            netdfs.DfsEnumArray200 arrayWithNulls = new netdfs.DfsEnumArray200();
            arrayWithNulls.count = 2;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

            System.arraycopy(buffer, offset + 8, copiedFileId, 0, 16);
            assertArrayEquals(testFileId, copiedFileId);
        }
    
        @Test
        @DisplayName("writeBytesWireFormat with null file ID should handle gracefully")
        void testWriteBytesWireFormatWithNullFileId() {
            Smb2FlushRequest requestWithNull = new Smb2FlushRequest(mockConfig, null);
            byte[] buffer = new byte[256];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java

            d.parameterCount = 0;
            d.dataCount = 0;
            d.headerStart = 0;
    
            byte[] buf = new byte[100];
            int result = d.readBytesWireFormat(buf, 0);
    
            // Should handle empty read gracefully
            assertEquals(0, result, "Should return 0 for no data");
            assertTrue(d.getParametersDone(), "parametersDone should be true when total is 0");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

        void testSetNullFileId() {
            // Given
            RequestWithFileId request = new Smb2CloseRequest(mockConfig, testFileId);
    
            // When & Then - should handle null gracefully (implementation dependent)
            assertDoesNotThrow(() -> request.setFileId(null), "Should handle null file ID without throwing exception");
        }
    
        @Test
        @DisplayName("Should handle empty file ID")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                constructor.setAccessible(true);
                SmbComNtCancel cancel = constructor.newInstance(config, 1);
    
                byte[] emptyArray = new byte[0];
    
                // When & Then - should handle gracefully
                Method writeParams = SmbComNtCancel.class.getDeclaredMethod("writeParameterWordsWireFormat", byte[].class, int.class);
                writeParams.setAccessible(true);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top