- Sort Score
 - Result 10 results
 - Languages All
 
Results 141 - 150 of 2,385 for When (0.02 sec)
- 
				
				
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) - 
				
				
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) - 
				
				
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) - 
				
				
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
void setUp() { mockContext = mock(CIFSContext.class); mockConfig = mock(Configuration.class); when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.getLeaseTimeout()).thenReturn(30000); when(mockConfig.getMaxLeases()).thenReturn(1000); when(mockConfig.getLeaseBreakTimeout()).thenReturn(60); leaseManager = new LeaseManager(mockContext); } @AfterEach
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0) - 
				
				
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 & AssertRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) - 
				
				
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) - 
				
				
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) - 
				
				
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) - 
				
				
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/CIFSExceptionTest.java
// When CIFSException exception = new CIFSException(cause); // Then assertNotNull(exception); assertEquals(cause, exception.getCause()); assertTrue(exception.getMessage().contains("Root cause")); } @Test @DisplayName("Should handle null message") void testNullMessage() { // When/Then assertDoesNotThrow(() -> {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0)