Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 773 for When (0.75 sec)

  1. src/test/java/jcifs/smb/SmbTreeImplTest.java

            MockitoAnnotations.openMocks(this);
            when(session.getConfig()).thenReturn(config);
            when(session.getContext()).thenReturn(context);
            when(session.getTransport()).thenReturn(transport);
            when(session.acquire()).thenReturn(session);
            when(config.isTraceResourceUsage()).thenReturn(false);
            when(context.getConfig()).thenReturn(config);
            when(session.isConnected()).thenReturn(true);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/SmbNegotiationResponseTest.java

            // Arrange
            int cap1 = 0x00000001;
            int cap2 = 0x00000002;
            int cap3 = 0x00000004;
            when(negotiationResponse.haveCapabilitiy(cap1)).thenReturn(true);
            when(negotiationResponse.haveCapabilitiy(cap2)).thenReturn(false);
            when(negotiationResponse.haveCapabilitiy(cap3)).thenReturn(true);
    
            // Act & Assert
            assertTrue(negotiationResponse.haveCapabilitiy(cap1));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java

         */
        @Test
        void testDecode() throws NdrException {
            // When
            ndrObject.decode(mockBuffer);
    
            // Then
            // Verify that our mock buffer had the expected method called.
            verify(mockBuffer).dec_ndr_long();
        }
    
        /**
         * Test case for the encode method when it throws an NdrException.
         * Verifies that the exception is correctly propagated.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java

        }
    
        /**
         * Registers a callback to be executed when the computation is complete.
         * @param consumer The callback.
         * @return The promise.
         */
        public Promise then(final Consumer<RESPONSE> consumer) {
            return promise.then(consumer);
        }
    
        /**
         * Registers a callback to be executed when the computation fails.
         * @param consumer The callback.
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/context/CIFSContextWrapperTest.java

            when(mockDelegate.getSIDResolver()).thenReturn(mockSidResolver);
            assertEquals(mockSidResolver, cifsContextWrapper.getSIDResolver());
            verify(mockDelegate).getSIDResolver();
        }
    
        @Test
        void testHasDefaultCredentials_True() {
            // Test hasDefaultCredentials() method when true
            when(mockDelegate.hasDefaultCredentials()).thenReturn(true);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

                rpc.retval = 0;
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class));
    
            LsaPolicyHandle handle = new LsaPolicyHandle(mockDcerpcHandle, "server", 123);
    
            // Now, mock the behavior for MsrpcLsarClose to throw IOException
            doThrow(new IOException("Close network error")).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarClose.class));
    
            // Act & Assert
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbTreeInternalTest.java

            verify(tree).send(request, RequestParam.NO_TIMEOUT, RequestParam.NO_RETRY);
        }
    
        @Test
        @DisplayName("send throws CIFSException for null request when implementation does")
        void send_nullRequest_throws() throws Exception {
            // Arrange
            when(tree.send(isNull())).thenThrow(new CIFSException("null request"));
    
            // Act
            CIFSException ex = assertThrows(CIFSException.class, () -> tree.send(null));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

            when(mockSearchResponse.getScrollId()).thenReturn("scroll1", "scroll1");
            when(mockSearchResponse.getHits()).thenReturn(mockSearchHits);
            when(mockSearchHits.getHits()).thenReturn(new SearchHit[] { mockHit }, new SearchHit[0]);
            when(mockHit.getIndex()).thenReturn("test-index");
            when(mockHit.getId()).thenReturn("doc1");
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:44:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/kerberos/KerberosCredentialsTest.java

         */
        @Test
        void testGetKey_KeyExists() throws LoginException {
            when(key1.getKeyType()).thenReturn(KEY_TYPE_1);
            when(key2.getKeyType()).thenReturn(KEY_TYPE_2);
            Set<Object> privateCredentials = new HashSet<>();
            privateCredentials.add(key1);
            privateCredentials.add(key2);
            when(subject.getPrivateCredentials()).thenReturn(privateCredentials);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbTreeHandleTest.java

        /**
         * Test for close() method throwing CIFSException.
         * Verifies that the method correctly throws a CIFSException when configured to do so.
         * @throws CIFSException
         */
        @Test
        void testClose_throwsCIFSException() throws CIFSException {
            doThrow(new CIFSException("Test Exception")).when(smbTreeHandle).close();
            assertThrows(CIFSException.class, () -> smbTreeHandle.close(), "close() should throw CIFSException");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top