- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 27 for doNothing (0.7 sec)
-
src/test/java/jcifs/internal/RequestWithPathTest.java
@DisplayName("Test setResolveInDfs sets flag correctly") void testSetResolveInDfs() { // Test with mock doNothing().when(requestWithPath).setResolveInDfs(true); requestWithPath.setResolveInDfs(true); verify(requestWithPath, times(1)).setResolveInDfs(true); doNothing().when(requestWithPath).setResolveInDfs(false); requestWithPath.setResolveInDfs(false);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
when(mockHandle.getMaxRecv()).thenReturn(maxRecv); // Use lenient stubbing to handle multiple calls lenient().doNothing().when(mockBuffer).enc_ndr_short(anyInt()); lenient().doNothing().when(mockBuffer).enc_ndr_long(anyInt()); lenient().doNothing().when(mockBuffer).enc_ndr_small(anyInt()); DcerpcBind bindWithParams = new DcerpcBind(mockBinding, mockHandle);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
// Mock parent close() to do nothing - explicitly mock the super.close() behavior // The close method calls super.close(), then handle.close(), then pipe.close() lenient().doNothing().when((DcerpcHandle) handle).close(); // Setup close to call real method which will then call our mocked components doCallRealMethod().when(handle).close(); handle.close();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationResponseTest.java
// Arrange doNothing().when(negotiationResponse).setupRequest(null); // Act negotiationResponse.setupRequest(null); // Assert verify(negotiationResponse).setupRequest(null); } @Test @DisplayName("Test setupResponse method") void testSetupResponse() { // Arrange doNothing().when(negotiationResponse).setupResponse(response);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/BufferCacheTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNotSame; import static org.junit.jupiter.api.Assertions.assertSame; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.List; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
void writeUTF_encodesAndPrefixes() throws Exception { SmbRandomAccessFile raf = spy(newInstance("rw", false, true, false)); doNothing().when(raf).write(any(byte[].class), anyInt(), anyInt()); doNothing().when(raf).writeShort(anyInt()); raf.writeUTF("é"); // 2-byte UTF-8 char // size prefix should be 2, and then write called with len=2
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosCredentialsTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.when; import java.util.Collections; import java.util.HashSet; import java.util.Set; import javax.security.auth.Subject;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.io.ByteArrayInputStream;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.atLeast; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.io.IOException; import java.net.InetAddress;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.7K bytes - Viewed (0)