Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 653 for HANDLE (0.27 sec)

  1. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

            }
    
            @Test
            @DisplayName("Should handle special SMB2 context names")
            void testSMB2ContextNames() {
                // Common SMB2 create context names
                String[] contextNames = { "DHnQ", // Durable handle request
                        "DHnC", // Durable handle reconnect
                        "AlSi", // Allocation size
                        "MxAc", // Max access
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

        }
    
        @Test
        @DisplayName("Should handle null hostname in getByName")
        void testGetByNameWithNull() {
            // When/Then
            assertThrows(UnknownHostException.class, () -> {
                nameServiceClient.getByName(null);
            }, "Should throw UnknownHostException for null hostname");
        }
    
        @Test
        @DisplayName("Should handle empty hostname in getByName")
        void testGetByNameWithEmpty() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbFileHandle.java

     */
    package jcifs;
    
    /**
     * Handle to an open file
     *
     * @author mbechler
     *
     */
    public interface SmbFileHandle extends AutoCloseable {
    
        /**
         * Returns the tree handle associated with this file handle
         *
         * @return the tree
         */
        SmbTreeHandle getTree();
    
        /**
         * Checks if this file handle is still valid
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbNamedPipeTest.java

            assertSame(pipe, handle.getPipe(), "Handle should reference originating pipe");
            assertSame(handle, handle.unwrap(SmbPipeHandle.class), "unwrap should return same instance for interface type");
        }
    
        @ParameterizedTest
        @DisplayName("getPipeType echoes constructor input (edge values)")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

        }
    
        @Test
        @DisplayName("Constructor should handle null parent")
        void testConstructor_NullParent_ThrowsNPE() {
            // When & Then: Null parent should cause NullPointerException
            assertThrows(NullPointerException.class, () -> new NetServerEnumIterator(null, treeHandle, "*", 0, null));
        }
    
        @Test
        @DisplayName("Constructor should handle null tree handle")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

            when(handle.hasCapability(anyInt())).thenReturn(true);
    
            // Act: perform a series of calls to verify order
            handle.ensureDFSResolved();
            handle.hasCapability(7);
            handle.release();
    
            // Assert: verify they happened in order
            InOrder inOrder = inOrder(handle);
            inOrder.verify(handle).ensureDFSResolved();
            inOrder.verify(handle).hasCapability(7);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            // Verify it's an instance of ServerMessageBlock2Response
            assertTrue(lockResponse instanceof jcifs.internal.smb2.ServerMessageBlock2Response);
        }
    
        @Test
        @DisplayName("Constructor should handle null configuration")
        void testConstructorWithNullConfig() {
            // Given & When
            Smb2LockResponse lockResponse = new Smb2LockResponse(null);
    
            // Then
            assertNotNull(lockResponse);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/config/PropertyConfigurationTest.java

            assertEquals("testdomain", config.getDefaultDomain());
        }
    
        @Test
        @DisplayName("Should handle null properties gracefully")
        void testNullProperties() throws CIFSException {
            // PropertyConfiguration doesn't handle null properties
            // It should throw NullPointerException
            assertThrows(NullPointerException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

            Callback[] cbs = new Callback[] { nc, pc };
            auth.handle(cbs);
    
            // Name should be formatted as username@domain
            assertEquals("user@DOM", nc.getName());
            // Password should be set
            assertEquals("pass", new String(pc.getPassword()));
        }
    
        @Test
        @DisplayName("handle: sets only provided callbacks (name-only)")
        void testHandleNameOnly() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            }
    
            @Test
            @DisplayName("Should handle null file ID in setter")
            void testSetNullFileId() {
                assertDoesNotThrow(() -> request.setFileId(null));
            }
    
            @Test
            @DisplayName("Should handle various file ID sizes")
            void testVariousFileIdSizes() {
                byte[] shortFileId = new byte[8];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
Back to top