- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 179 for nothing (0.96 sec)
-
src/test/java/jcifs/SmbTransportPoolTest.java
import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyBoolean; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/test/java/jcifs/SidResolverTest.java
SID[] emptySids = new SID[0]; doNothing().when(sidResolver).resolveSids(any(CIFSContext.class), anyString(), any(SID[].class)); assertDoesNotThrow(() -> sidResolver.resolveSids(mockContext, testServerName, emptySids)); } // Test resolveSids with offset and length @Test void testResolveSidsWithOffsetAndLength_Success() throws CIFSException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
when(trans2.ensureConnected()).thenThrow(new IOException("Connection failed")); doNothing().when(trans2).close(); when(trans1.unwrap(SmbTransportImpl.class)).thenReturn(trans1); when(trans1.ensureConnected()).thenReturn(true); when(trans1.acquire()).thenReturn(trans1); doNothing().when(trans1).close(); // Return mocked transports
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.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/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/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/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/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)