Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 2,385 for When (0.02 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                message.opnumValue = 5;
    
                when(mockBuffer.getIndex()).thenReturn(0).thenReturn(16).thenReturn(20).thenReturn(24);
                lenient().doNothing().when(mockBuffer).advance(anyInt());
                lenient().doNothing().when(mockBuffer).enc_ndr_long(anyInt());
                lenient().doNothing().when(mockBuffer).enc_ndr_short(anyInt());
                lenient().doNothing().when(mockBuffer).enc_ndr_small(anyInt());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacLogonInfoTest.java

            when(logonInfo.getHomeDirectory()).thenReturn("\\\\server\\\\home");
            when(logonInfo.getHomeDrive()).thenReturn("H:");
            when(logonInfo.getLogonScript()).thenReturn("logon.bat");
            when(logonInfo.getUserAccountControl()).thenReturn(0x200);
            when(logonInfo.getUserFlags()).thenReturn(0);
            when(logonInfo.getUserSid()).thenReturn(userSid);
            when(logonInfo.getGroupSid()).thenReturn(new SID("S-1-5-21-1-2-3-513"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTransportInternalTest.java

        void hasCapability_variousCaps(int cap) throws SmbException {
            when(transport.hasCapability(anyInt())).thenAnswer(inv -> ((int) inv.getArgument(0)) >= 0);
    
            boolean result = transport.hasCapability(cap);
    
            assertEquals(cap >= 0, result);
            verify(transport, times(1)).hasCapability(cap);
        }
    
        // Invalid input: simulate underlying SmbException when capability check fails
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  4. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbCopyUtilTest.java

            when(sh.isSMB2()).thenReturn(true);
            when(dh.isSMB2()).thenReturn(true);
            when(sh.isSameTree(dh)).thenReturn(true);
    
            // Source open returns a handle that reports size 0
            SmbFileHandleImpl sfd = mock(SmbFileHandleImpl.class);
            when(sfd.getInitialSize()).thenReturn(0L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. cmd/typed-errors.go

    // error returned in IAM subsystem when user doesn't exist.
    var errNoSuchUser = errors.New("Specified user does not exist")
    
    // error returned by IAM when a use a builtin IDP command when they could mean
    // to use a LDAP command.
    var errNoSuchUserLDAPWarn = errors.New("Specified user does not exist. If you meant a user in LDAP please use command under `mc idp ldap`")
    
    // error returned when service account is not found
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 16 07:34:24 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/http/NtlmHttpFilterTest.java

            filter = new NtlmHttpFilter();
    
            // Setup lenient stubs for common mock interactions
            lenient().when(request.getSession()).thenReturn(httpSession);
            lenient().when(request.getSession(anyBoolean())).thenReturn(httpSession);
            lenient().when(response.getOutputStream()).thenReturn(servletOutputStream);
        }
    
        @Test
        void testInit_success() throws ServletException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/HMACT64Test.java

            try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
                mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5);
                byte[] innerDigest = "inner_digest".getBytes();
                byte[] finalDigest = "final_digest".getBytes();
    
                when(mockMd5.digest()).thenReturn(innerDigest);
                when(mockMd5.digest(any(byte[].class))).thenReturn(finalDigest);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  10. 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);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
Back to top