- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 550 for sock (0.01 sec)
-
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
import jcifs.internal.smb1.trans2.Trans2FindNext2; @ExtendWith(MockitoExtension.class) class DirFileEntryEnumIterator1Test { @Mock SmbTreeHandleImpl tree; @Mock SmbResource parent; @Mock SmbResourceLocator locator; @Mock Configuration config; private static boolean handlerRegistered = false; // Register SMB URL handler once for all tests @BeforeAllRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt
/** The timestamp of the last taken event, used to measure elapsed time between events. */ private var lastTimestampNs: Long? = null /** Confirm that the thread does not hold a lock on `lock` during the callback. */ fun forbidLock(lock: Any) { forbiddenLocks.add(lock) } /** * Removes recorded events up to (and including) an event is found whose class equals [eventClass] * and returns it. */
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
private InetAddress mockInetAddress; private CIFSContext mockCIFSContext; @BeforeEach void setup() { mockNbtAddress = mock(NbtAddress.class); mockInetAddress = mock(InetAddress.class); mockCIFSContext = mock(CIFSContext.class); } @Test void shouldReturnNbtAddressNextCalledNameWhenWrappedIsNbtAddress() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
@MockitoSettings(strictness = Strictness.LENIENT) class ChannelFailoverTest { @Mock private ChannelManager mockChannelManager; @Mock private ChannelLoadBalancer mockLoadBalancer; @Mock private SmbTransport mockTransport; @Mock private SmbTransport mockNewTransport; @Mock private CommonServerMessageBlock mockOperation; private ChannelFailover failover;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2LockRequest.java
private byte[] fileId; private final Smb2Lock[] locks; /** * Constructs an SMB2 lock request with the specified parameters. * * @param config the configuration for this request * @param fileId the file identifier for the file to lock * @param locks the array of lock elements to apply */ public Smb2LockRequest(final Configuration config, final byte[] fileId, final Smb2Lock[] locks) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
private CIFSContext mockContext; private Smb2SetInfoRequest request; private byte[] testFileId; @BeforeEach void setUp() { mockConfig = mock(Configuration.class); mockContext = mock(CIFSContext.class); when(mockContext.getConfig()).thenReturn(mockConfig); testFileId = new byte[16]; for (int i = 0; i < 16; i++) { testFileId[i] = (byte) i;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/RequestWithPathTest.java
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; /** * Test class for RequestWithPath interface */ @ExtendWith(MockitoExtension.class) class RequestWithPathTest { @Mock private RequestWithPath requestWithPath; private TestRequestWithPath testImplementation; @BeforeEachRegistered: 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/SmbTransportTest.java
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; @ExtendWith(MockitoExtension.class) public class SmbTransportTest { @Mock private SmbTransport smbTransport; @Mock private CIFSContext cifsContext; @Mock private Address remoteAddress; @BeforeEach void setUp() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloseablesTest.java
// 'swallowException' when the mock does not throw an exception. setupCloseable(false); doClose(mockCloseable, false, false); setupCloseable(false); doClose(mockCloseable, true, false); } public void testClose_closeableWithEatenException() throws IOException { // make sure that no exception is thrown if 'swallowException' is true // when the mock does throw an exception. setupCloseable(true);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java
*/ @Test @DisplayName("Mock interaction example with SmbTransport") void mockTransportInteraction() { // Create a mock of SmbTransport from jcifs package jcifs.SmbTransport mock = mock(jcifs.SmbTransport.class); // Stub the getRemoteHostName method when(mock.getRemoteHostName()).thenReturn("test-host"); // Verify the stubbingRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0)