- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 184 for SEND (0.01 sec)
-
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
ServerMessageBlock response = new SmbComOpenAndXResponse(); // Execute send tree.send(request, response); // Verify session.send was called and tid was set verify(session).send(request, response); assertEquals(123, request.tid); } @Test void testSendWithDfs() throws SmbException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
// Stub tree send for varargs when(treeConnection.send(eq(resourceLoc), any(CommonServerMessageBlockRequest.class), isNull(), any(RequestParam[].class))) .thenReturn(resp); CommonServerMessageBlockResponse out = handle.send(req, RequestParam.NO_RETRY); assertSame(resp, out);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
internal/grid/muxclient.go
var cancel context.CancelFunc ctx, cancel = context.WithTimeout(ctx, defaultSingleRequestTimeout) defer cancel() } // Send request if err := m.send(msg); err != nil { return nil, err } if debugReqs { fmt.Println(m.MuxID, m.parent.String(), "SEND") } // Wait for response or context. select { case v, ok := <-ch: if !ok { return nil, ErrDisconnected }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 15.9K bytes - Viewed (0) -
tests/test_sub_callbacks.py
And this path operation will: * Send the invoice to the client. * Collect the money from the client. * Send a notification back to the API user (the external developer), as a callback. * At this point is that the API will somehow send a POST request to the external API with the notification of the invoice event (e.g. "payment successful"). """Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 12.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
assertFalse(it.hasNext(), "Iterator should be exhausted"); // Close explicitly to exercise doCloseInternal it.close(); // Verify interactions: one create, two additional directory queries (for fetchMore), one close verify(tree, times(1)).send(argThat((Request<?> r) -> r instanceof Smb2CreateRequest));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
when(mockFile.getType()).thenReturn(SmbConstants.TYPE_NAMED_PIPE); // th.send(request, response, ...) throws SmbException with NT_STATUS_PIPE_BROKEN doThrow(new SmbException(NtStatus.NT_STATUS_PIPE_BROKEN, false)).when(mockTree) .send(any(jcifs.internal.CommonServerMessageBlockRequest.class),
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
// Mock for ensureOpen to reopen file when(mockFile.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(mockFileHandle); when(mockTreeHandle.send(any(Smb2WriteRequest.class), any())).thenReturn(mockWriteResponse); when(mockWriteResponse.getCount()).thenReturn(1); outputStream = new SmbFileOutputStream(mockFile, mockTreeHandle, mockFileHandle,Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt
taskFaker.runTasks() client.listener.assertFailure(IOException::class.java, "source is closed") assertThat(client.webSocket!!.send("Hello!")).isFalse() } @Test fun socketClosedDuringMessageKillsWebSocket() { server.source.close() assertThat(client.webSocket!!.send("Hello!")).isTrue() taskFaker.runTasks() client.listener.assertFailure(IOException::class.java, "source is closed")
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
when(ioResp.getOutputData()).thenReturn(peek); when(tree.send(any(Smb2IoctlRequest.class), eq(RequestParam.NO_RETRY))).thenReturn(ioResp); // Act int available = stream.available(); // Assert assertEquals(7, available, "Should return available bytes reported by server"); // Interactions: ensure open, use tree, send IOCTL and close resources
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
// Arrange: program send() to simulate first, next, next(NO_MORE_FILES) List<String[]> batches = new ArrayList<>(); batches.add(new String[] { ".", "..", "a", "b" }); // first batch, dot entries filtered batches.add(new String[] { "c" }); // second batch batches.add(new String[] {}); // last -> NO_MORE_FILES // send() answer that mutates the provided response
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0)