Search Options

Results per page
Sort
Preferred Languages
Advance

Results 451 - 460 of 1,148 for Handler (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            // When
            request.setSessionBinding(false);
    
            // Then
            assertFalse((boolean) sessionBindingField.get(request));
        }
    
        @Test
        @DisplayName("Should handle chain operation correctly")
        void testChain() {
            // Given
            ServerMessageBlock2 nextMessage = mock(ServerMessageBlock2.class);
    
            // When
            boolean result = request.chain(nextMessage);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java

      private final EventBus eventBus;
      private final Object event;
      private final Object subscriber;
      private final Method subscriberMethod;
    
      /**
       * @param eventBus The {@link EventBus} that handled the event and the subscriber. Useful for
       *     broadcasting a new event based on the error.
       * @param event The event object that caused the subscriber to throw.
       * @param subscriber The source subscriber context.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/CommonServerMessageBlockRequest.java

     *
     * @author mbechler
     */
    public interface CommonServerMessageBlockRequest extends CommonServerMessageBlock, Request {
    
        /**
         * Checks if the request will be handled asynchronously.
         *
         * @return request was handled asynchronously
         */
        boolean isResponseAsync();
    
        /**
         *
         * @return next chained message
         */
        @Override
        CommonServerMessageBlockRequest getNext();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SIDCacheImplTest.java

                SIDCacheImpl cache = new SIDCacheImpl(mock(CIFSContext.class));
                DcerpcHandle handle = mock(DcerpcHandle.class);
                LsaPolicyHandle policy = mock(LsaPolicyHandle.class);
                jcifs.SID[] none = new jcifs.SID[0];
    
                cache.resolveSids(handle, policy, none);
                verify(handle, times(1)).sendrecv(any(jcifs.dcerpc.msrpc.MsrpcLookupSids.class));
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarCloseTest.java

         * Verifies that the handle, ptype, and flags are correctly initialized.
         */
        @Test
        void testConstructor() {
            // Create an instance of MsrpcLsarClose with the mock handle
            MsrpcLsarClose lsarClose = new MsrpcLsarClose(mockHandle);
    
            // Verify that the handle passed to the constructor is correctly set in the superclass
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/DialectVersionTest.java

            // When
            String stringRep = version.toString();
    
            // Then
            assertNotNull(stringRep);
            assertFalse(stringRep.isEmpty());
        }
    
        @Test
        @DisplayName("Should handle version comparison")
        void testVersionComparison() {
            // Test equality
            assertEquals(DialectVersion.SMB311, DialectVersion.SMB311);
            assertNotEquals(DialectVersion.SMB1, DialectVersion.SMB311);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            // ensure file is open
            if (this.handle == null || !this.handle.isValid()) {
                // one extra acquire to keep this open till the stream is released
                this.handle =
                        this.file.openUnshared(this.openFlags, this.access, this.sharing, SmbConstants.ATTR_NORMAL, this.options).acquire();
                return this.handle;
            }
            return this.handle.acquire();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.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
    - 24.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

            // When
            response.prepare(mockNext);
    
            // Then
            verify(mockNext, times(0)).setTreeId(any(Integer.class));
        }
    
        @DisplayName("Should handle various share flag combinations")
        @ParameterizedTest
        @MethodSource("provideFlagCombinations")
        void testShareFlagCombinations(int flags, boolean expectedDfs) throws SMBProtocolDecodingException {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
Back to top