- Sort Score
- Num 10 results
- Language All
Results 421 - 430 of 1,000 for sock (0.09 seconds)
-
docs/works_with_okhttp.md
* [OkHttp Idling Resource](https://github.com/JakeWharton/okhttp-idling-resource): An Espresso IdlingResource for OkHttp. * [okhttp-client-mock](https://github.com/gmazzo/okhttp-client-mock): A simple OKHttp client mock, using a programmable request interceptor. * [OkHttp Profiler](https://plugins.jetbrains.com/plugin/11249-okhttp-profiler): An IntelliJ plugin for monitoring OkHttp calls.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Nov 26 07:59:38 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
Field resultsField = Smb2QueryDirectoryResponse.class.getDeclaredField("results"); resultsField.setAccessible(true); FileEntry[] entries = new FileEntry[] { mock(FileBothDirectoryInfo.class), mock(FileBothDirectoryInfo.class) }; resultsField.set(response, entries); FileEntry[] results = response.getResults(); assertNotNull(results); assertEquals(2, results.length);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 23.5K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NameTest.java
// Create a mock NetbiosName that is not a Name instance NetbiosName mockNetbiosName = mock(NetbiosName.class); when(mockNetbiosName.getName()).thenReturn("MOCKNAME"); when(mockNetbiosName.getNameType()).thenReturn(0x20); when(mockNetbiosName.getScope()).thenReturn("mock.scope"); Name name = new Name(mockConfig, mockNetbiosName);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java
} catch (Exception e) { assertTrue(true); // Expected exception } } @Test public void test_getJarFile_exists() throws IOException { // Create a mock jar file Path jarPath = tempDir.resolve("test-theme.jar"); Files.createFile(jarPath); ThemeHelper mockThemeHelper = new ThemeHelper() { @Override
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 14.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
if (throwOnCloseInternal) throw new CIFSException("closeInternal fail"); } } @Mock SmbTreeHandleImpl tree; @Mock SmbResource parent; @Mock ResourceNameFilter nameFilter; private void stubAcquireReturnsSelf() { when(tree.acquire()).thenReturn(tree); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.5K bytes - Click Count (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
import org.junit.jupiter.params.provider.MethodSource; import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; import org.mockito.MockitoAnnotations; class SessionServicePacketTest { private TestSessionServicePacket packet; @Mock private InputStream mockInputStream; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.5K bytes - Click Count (0) -
internal/http/server.go
func (srv *Server) Shutdown() error { srv.listenerMutex.Lock() if srv.listener == nil { srv.listenerMutex.Unlock() return http.ErrServerClosed } srv.listenerMutex.Unlock() if atomic.AddUint32(&srv.inShutdown, 1) > 1 { // shutdown in progress return http.ErrServerClosed } // Close underneath HTTP listener. srv.listenerMutex.Lock() err := srv.listener.Close() srv.listenerMutex.Unlock()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 6.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
private byte[] testMachineId = new byte[16]; private byte[] testSalt = new byte[32]; @BeforeEach void setUp() { mockConfig = mock(Configuration.class); mockContext = mock(CIFSContext.class); mockRandom = mock(SecureRandom.class); // Initialize test data for (int i = 0; i < 16; i++) { testMachineId[i] = (byte) (i + 1); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.7K bytes - Click Count (0) -
.gitignore
.idea .ipynb_checkpoints .mypy_cache .vscode __pycache__ .pytest_cache htmlcov dist site .coverage* coverage.xml .netlify test.db log.txt Pipfile.lock env3.* env docs_build site_build venv docs.zip archive.zip # vim temporary files *~ .*.sw? .cache # macOS .DS_Store
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jan 10 22:02:57 GMT 2026 - 280 bytes - Click Count (0) -
src/test/java/jcifs/NetbiosNameTest.java
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; /** * Test class for NetbiosName interface functionality */ @DisplayName("NetbiosName Tests") class NetbiosNameTest extends BaseTest { @Mock private NetbiosName mockNetbiosName; @Test @DisplayName("Should define interface methods")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8K bytes - Click Count (0)