Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 241 - 250 of 1,561 for Handle (0.05 seconds)

  1. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java

        @DisplayName("Constructor with null pipe name should handle gracefully")
        void testConstructorWithNullPipeName() {
            // Act
            transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, null);
    
            // Assert
            assertNotNull(transWaitNamedPipe);
            assertNull(transWaitNamedPipe.name);
        }
    
        @Test
        @DisplayName("Constructor with empty pipe name should handle gracefully")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/SmbTreeHandleTest.java

            assertTrue(smbTreeHandle.isSameTree(smbTreeHandle), "isSameTree should return true for the same handle");
            assertFalse(smbTreeHandle.isSameTree(anotherHandle), "isSameTree should return false for a different handle");
        }
    
        /**
         * Test for isSMB2() method.
         * Verifies that the method returns the correct SMB protocol version status.
         */
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseStateTest.java

            // Should return true when handle caching is enabled
            assertTrue(DirectoryLeaseState.canKeepHandlesOpen(Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING));
            assertTrue(DirectoryLeaseState.canKeepHandlesOpen(DirectoryLeaseState.DIRECTORY_READ_HANDLE));
            assertTrue(DirectoryLeaseState.canKeepHandlesOpen(DirectoryLeaseState.DIRECTORY_FULL));
    
            // Should return false when handle caching is not enabled
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertEquals(SmbOperationException.ErrorCategory.NETWORK, exception.getErrorCategory());
            assertTrue(exception.isRetryable());
        }
    
        @Test
        @DisplayName("Should handle retry policy correctly")
        void testRetryPolicy() {
            // Given
            SmbOperationException.RetryPolicy policy = new SmbOperationException.RetryPolicy(3, 1000, 10000, 2.0, true);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 16.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

            leaseManager.updateLease(key, grantedState);
    
            LeaseEntry entry = leaseManager.getLease(key);
            assertEquals(grantedState, entry.getLeaseState());
        }
    
        @Test
        @DisplayName("Should handle lease break")
        void testHandleLeaseBreak() {
            String path = "/share/file.txt";
            int initialState = Smb2LeaseState.SMB2_LEASE_FULL;
            int newState = Smb2LeaseState.SMB2_LEASE_READ_CACHING;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 00:16:17 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/tests/persistent/HandleInfoTest.java

            assertFalse(info.isReconnecting());
            assertNull(info.getFile());
        }
    
        @Test
        public void testHandleInfoExpiration() {
            // Test durable handle expiration
            HandleInfo durableInfo = new HandleInfo("/test/file.txt", testGuid, testFileId, HandleType.DURABLE_V2, 100, // 100ms timeout
                    null);
    
            assertFalse(durableInfo.isExpired());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                    assertEquals(testByte, buffer[i], "Byte at position " + i + " was modified");
                }
            }
    
            @Test
            @DisplayName("Should handle encoding at buffer boundary")
            void testEncodeAtBufferBoundary() {
                // Given
                byte[] exactBuffer = new byte[EXPECTED_SIZE];
                SrvCopychunk chunk = new SrvCopychunk(999L, 888L, 777);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorErrorHandlingTest.java

                processor.setSearcher(new TestSearcher(100));
                processor.register(new ExceptionThrowingSearcher(new RuntimeException("Test exception")));
                processor.init();
    
                // Should handle exception gracefully and return results from working searcher
                final List<Map<String, Object>> results = processor.search("*", new TestSearchRequestParams(0, 10, 0), OptionalThing.empty());
                assertNotNull(results);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

            }
        }
    
        @Nested
        @DisplayName("Integration Tests")
        class IntegrationTests {
    
            @Test
            @DisplayName("Should handle complete copy operation with multiple chunks")
            void testCompleteCopyOperation() {
                // Given
                byte[] sourceKey = new byte[SOURCE_KEY_SIZE];
                for (int i = 0; i < SOURCE_KEY_SIZE; i++) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 23.1K bytes
    - Click Count (0)
  10. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrCloseHandleTest.java

                    "flags should be DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG");
            // Verify that the super constructor was called with the correct handle.
            // This is implicitly tested by the object being created without error and
            // the fields set by the constructor being correct.
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.4K bytes
    - Click Count (0)
Back to Top