Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 689 for WHEN (0.19 sec)

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

            // Given
            when(mockTreeHandle.isSMB2()).thenReturn(true);
            when(mockTreeHandle.getSendBufferSize()).thenReturn(65536);
            when(mockFileHandle.isValid()).thenReturn(false, true);
            when(mockFileHandle.getFileId()).thenReturn(new byte[16]);
            when(mockFileHandle.acquire()).thenReturn(mockFileHandle);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            doNothing().when(messageBlock).setMid(mid);
            doNothing().when(messageBlock).setCommand(command);
            doNothing().when(messageBlock).setUid(uid);
            doNothing().when(messageBlock).setSessionId(sessionId);
            doNothing().when(messageBlock).setExtendedSecurity(true);
            doNothing().when(messageBlock).setDigest(digest);
            doNothing().when(messageBlock).setResponse(response);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            when(pipe.ensureTreeConnected()).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true);
            when(pipe.openUnshared(anyString(), anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fileHandle);
            when(fileHandle.acquire()).thenReturn(fileHandle);
            when(fileHandle.getTree()).thenReturn(tree);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            SmbPipeInputStream stream = newStreamWithMinimalStubs(true);
    
            when(handle.ensureOpen()).thenReturn(fd);
            when(fd.getTree()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true);
            when(tree.getConfig()).thenReturn(config);
            when(config.getTransactionBufferSize()).thenReturn(65535);
            when(tree.send(any(Smb2IoctlRequest.class), eq(RequestParam.NO_RETRY))).thenThrow(new SmbException("boom"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/Kerb5ContextTest.java

        void getFlags_allFalse() {
            when(gssContext.getCredDelegState()).thenReturn(false);
            when(gssContext.getMutualAuthState()).thenReturn(false);
            when(gssContext.getReplayDetState()).thenReturn(false);
            when(gssContext.getSequenceDetState()).thenReturn(false);
            when(gssContext.getAnonymityState()).thenReturn(false);
            when(gssContext.getConfState()).thenReturn(false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbFileHandleTest.java

            when(smbFileHandle.isValid()).thenReturn(true);
            assertTrue(smbFileHandle.isValid(), "isValid should return true when the handle is valid.");
            verify(smbFileHandle, times(1)).isValid();
        }
    
        /**
         * Test isValid() when the handle is invalid.
         */
        @Test
        void testIsValid_whenInvalid() {
            when(smbFileHandle.isValid()).thenReturn(false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. 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");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NetworkExplorerTest.java

            lenient().when(request.getSession()).thenReturn(session);
            lenient().when(request.getSession(false)).thenReturn(session);
            lenient().when(request.getSession(true)).thenReturn(session);
    
            // Setup default session attribute behavior
            lenient().when(session.getAttribute(anyString())).thenReturn(null);
    
            // Setup SmbFile mock
            lenient().when(smbFile.getLocator()).thenReturn(locator);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
Back to top