Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 239 for thenReturn (0.06 sec)

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

            SmbResourceLocator context2 = mock(SmbResourceLocator.class);
            when(context2.getShare()).thenReturn("share");
            when(context2.getDfsReferral()).thenReturn(null);
            when(context2.getUNCPath()).thenReturn("\\");
            when(context2.getURLPath()).thenReturn("/share/");
            when(context2.getServer()).thenReturn("server");
    
            base2.resolveInContext(context2, "sub/child");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/http/NtlmServletTest.java

            when(cifsContext.getTransportPool()).thenReturn(transportPool);
            when(cifsContext.getNameServiceClient()).thenReturn(nameServiceClient);
            lenient().when(cifsContext.getConfig()).thenReturn(configuration);
            lenient().when(configuration.getDefaultDomain()).thenReturn("TEST_DOMAIN");
            lenient().when(nameServiceClient.getByName(anyString(), anyBoolean())).thenReturn(mock(Address.class));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbResourceTest.java

                // Given
                when(mockResource.openOutputStream()).thenReturn(mockOutputStream);
                when(mockResource.openOutputStream(anyBoolean())).thenReturn(mockOutputStream);
                when(mockResource.openOutputStream(anyBoolean(), anyInt())).thenReturn(mockOutputStream);
                when(mockResource.openOutputStream(anyBoolean(), anyInt(), anyInt(), anyInt())).thenReturn(mockOutputStream);
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            when(readResponse.getFlags2()).thenReturn(SmbConstants.FLAGS2_SECURITY_SIGNATURES);
            when(readResponse.getSignSeq()).thenReturn(10);
            when(readResponse.getCommand()).thenReturn((int) ServerMessageBlock.SMB_COM_READ_ANDX);
            when(readResponse.getLength()).thenReturn(100);
            when(readResponse.getDataLength()).thenReturn(50);
            when(readResponse.getData()).thenReturn(readData);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            when(response1.getNextResponse()).thenReturn(response2);
            when(response2.getNextResponse()).thenReturn(response3);
            when(response3.getNextResponse()).thenReturn(null);
    
            when(response1.isAsync()).thenReturn(false);
            when(response2.isAsync()).thenReturn(true);
            when(response3.isAsync()).thenReturn(false);
    
            // When - test chain navigation and properties
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            lenient().when(mockSmbPipeHandle.unwrap(SmbPipeHandleInternal.class)).thenReturn(mockSmbPipeHandleInternal);
            lenient().when(mockSmbNamedPipe.getContext()).thenReturn(mockContext);
            lenient().when(mockSmbNamedPipe.getLocator()).thenReturn(mockSmbResourceLocator);
            lenient().when(mockDcerpcBinding.getServer()).thenReturn(TEST_SERVER);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

        @BeforeEach
        void setUp() throws Exception {
            parent = mock(SmbFile.class);
            when(parent.getLocator()).thenReturn(locator);
            when(treeHandle.getConfig()).thenReturn(config);
            when(treeHandle.acquire()).thenReturn(treeHandle);
            when(treeHandle.getOEMDomainName()).thenReturn("TESTDOMAIN");
        }
    
        @Test
        @DisplayName("Constructor should throw SmbException for non-workgroup type with host")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/DfsImplTest.java

            // Set up mock behaviors
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockContext.getCredentials()).thenReturn(mockCredentials);
            when(mockContext.getTransportPool()).thenReturn(mockTransportPool);
            when(mockConfig.getDfsTtl()).thenReturn(300L);
    
            // Mock transport to throw IOException - simulating connection failure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/witness/WitnessClientTest.java

            lenient().when(mockContext.getConfig()).thenReturn(mockConfig);
            lenient().when(mockConfig.getWitnessHeartbeatTimeout()).thenReturn(120000L);
            lenient().when(mockConfig.getWitnessRegistrationTimeout()).thenReturn(300000L);
            lenient().when(mockConfig.getWitnessReconnectDelay()).thenReturn(1000L);
            lenient().when(mockConfig.isWitnessServiceDiscovery()).thenReturn(true);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/context/CIFSContextWrapperTest.java

        @BeforeEach
        void setUp() {
            mockDelegate = mock(CIFSContext.class);
            mockConfiguration = mock(Configuration.class);
            when(mockDelegate.getConfig()).thenReturn(mockConfiguration);
            when(mockConfiguration.isTraceResourceUsage()).thenReturn(false); // Default to false or true based on expected behavior
            cifsContextWrapper = new CIFSContextWrapper(mockDelegate);
        }
    
        @Test
        void testConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top