Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 740 for When (0.24 sec)

  1. src/test/java/jcifs/DfsResolverTest.java

            when(mockConfig.isDfsDisabled()).thenReturn(false);
            when(mockContext.getTransportPool()).thenReturn(mockTransportPool);
            when(mockTransportPool.getSmbTransport(any(), anyString(), anyInt(), anyBoolean(), anyBoolean())).thenReturn(mockTransport);
            when(mockTransport.unwrap(any())).thenReturn(mockTransport);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/LmhostsTest.java

            mockContext = mock(CIFSContext.class);
            mockConfig = mock(Configuration.class);
            when(mockContext.getConfig()).thenReturn(mockConfig);
        }
    
        @Test
        void testGetByNameWithNullLmHostsFile() {
            // Test when lmhosts file is not configured
            when(mockConfig.getLmHostsFileName()).thenReturn(null);
    
            NbtAddress result = lmhosts.getByName("TEST_HOST", mockContext);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbFileTest.java

                doReturn(mockTreeHandle).when(dest).ensureTreeConnected();
                doReturn(true).when(smbFile).exists();
                doReturn(false).when(dest).exists();
                when(mockTreeHandle.isSMB2()).thenReturn(false);
                when(mockTreeHandle.isSameTree(mockTreeHandle)).thenReturn(true);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/processor/impl/SitemapsResponseProcessorTest.java

            sitemap.setLoc("https://example.com/page1");
    
            SitemapSet sitemapSet = new SitemapSet();
            sitemapSet.addSitemap(sitemap);
    
            when(crawlerContainer.getComponent("sitemapsHelper")).thenReturn(sitemapsHelper);
            try {
                when(sitemapsHelper.parse(any(InputStream.class))).thenReturn(sitemapSet);
            } catch (Exception e) {
                fail("Should not throw exception in test setup");
            }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

        private SmbPipeOutputStream newStream() throws CIFSException {
            // Arrange common constructor collaborators to avoid touching network/state
            when(handle.getPipe()).thenReturn(pipe);
            when(tree.isSMB2()).thenReturn(true);
            when(tree.getSendBufferSize()).thenReturn(4096);
            // Act
            return new SmbPipeOutputStream(handle, tree);
        }
    
        @ParameterizedTest
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top