Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 963 for handle (0.06 sec)

  1. src/main/java/jcifs/internal/witness/WitnessRegistration.java

            this.flags = flags;
        }
    
        /**
         * Gets the context handle.
         *
         * @return the context handle
         */
        public byte[] getContextHandle() {
            return contextHandle;
        }
    
        /**
         * Sets the context handle.
         *
         * @param contextHandle the context handle
         */
        public void setContextHandle(byte[] contextHandle) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java

      }
    
      public static class StringSubscriber {
    
        @Subscribe
        public void handle(String s) {}
      }
    
      public static class IntegerSubscriber {
    
        @Subscribe
        public void handle(Integer i) {}
      }
    
      public static class ObjectSubscriber {
    
        @Subscribe
        public void handle(Object o) {}
      }
    
      public void testFlattenHierarchy() {
        assertEquals(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        }
    
        @Test
        @DisplayName("Should handle different cipher IDs")
        void testDifferentCipherIds() {
            // Test cipher ID 1 (AES-CCM)
            Smb2EncryptionContext context1 = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey);
            assertEquals(1, context1.getCipherId(), "Should handle cipher ID 1");
    
            // Test cipher ID 2 (AES-GCM)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // Just verify that contexts were written
            assertTrue(bytesWritten > 60); // Should be larger than basic negotiate request
        }
    
        @Test
        @DisplayName("Should handle empty negotiate contexts array")
        void testWriteBytesWireFormatEmptyContexts() {
            // Given
            when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB302);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbPipeResource.java

        int PIPE_TYPE_UNSHARED = 0x800;
    
        /**
         * Gets the type of this pipe.
         *
         * @return the type of the pipe
         */
        int getPipeType();
    
        /**
         * Create a pipe handle
         *
         * @return pipe handle, needs to be closed when finished
         */
        SmbPipeHandle openPipe();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                    // Then
                    assertEquals(4, bytesRead, "Failed at position " + pos);
                }
            }
    
            @Test
            @DisplayName("Should handle buffer with exact required size")
            void testReadBytesWireFormatExactBufferSize() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[4];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

                assertEquals(0, response.getChunkBytesWritten());
                assertEquals(0, response.getTotalBytesWritten());
            }
    
            @Test
            @DisplayName("Should handle negative values as unsigned")
            void testDecodeNegativeValuesAsUnsigned() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[12];
                SMBUtil.writeInt4(-1, buffer, 0); // chunksWritten
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

                byte[] buffer = new byte[1024];
                int result = echoResponse.writeBytesWireFormat(buffer, 0);
                assertEquals(0, result);
            }
    
            @Test
            @DisplayName("Should handle different buffer positions")
            void testWriteBytesWireFormatDifferentPositions() {
                byte[] buffer = new byte[1024];
    
                assertEquals(0, echoResponse.writeBytesWireFormat(buffer, 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbExceptionTest.java

                NtStatus.NT_STATUS_SHARING_VIOLATION, NtStatus.NT_STATUS_INVALID_PARAMETER })
        @DisplayName("Should handle various NT status codes")
        void testVariousNTStatusCodes(int ntStatus) {
            // When
            SmbException exception = new SmbException(ntStatus, false);
    
            // Then
            assertNotNull(exception);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  10. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top