- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 164 for setMid (0.05 seconds)
-
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
verify(messageBlock).setMid(expectedMid); verify(messageBlock).getMid(); } @Test @DisplayName("Test setMid with boundary values") void testSetMidWithBoundaryValues() { // Test with MAX_VALUE long maxMid = Long.MAX_VALUE; doNothing().when(messageBlock).setMid(maxMid); when(messageBlock.getMid()).thenReturn(maxMid); messageBlock.setMid(maxMid);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.7K bytes - Click Count (0) -
src/main/java/jcifs/util/transport/Response.java
*/ int getErrorCode(); /** * Sets the message ID. * * @param k the message ID to set */ void setMid(long k); /** * Gets the message ID. * * @return mid */ long getMid(); /** * Verifies the signature of this response. * * @param buffer the buffer containing the signature dataCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.2K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
long mid = 12345L; mockResponse.setMid(mid); // Verify that the method was called with the correct argument verify(mockResponse, times(1)).setMid(mid); } @Test void testGetMid() { long mid = 54321L; when(mockResponse.getMid()).thenReturn(mid); assertEquals(mid, mockResponse.getMid()); // Verify the method was calledCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtCancel.java
* * @param config the configuration * @param mid the message ID to cancel */ protected SmbComNtCancel(final Configuration config, final int mid) { super(config, SMB_COM_NT_CANCEL); setMid(mid); } /** * {@inheritDoc} * * @see jcifs.internal.smb1.ServerMessageBlock#isCancel() */ @Override public boolean isCancel() { return true; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/RequestTest.java
this.response = (TestResponse) msg; } @Override public long getMid() { return mid; } @Override public void setMid(long mid) { this.mid = mid; } @Override public int getCommand() { return command; }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/main/java/jcifs/internal/smb2/Smb2CancelRequest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
assertEquals(digest, response.getDigest()); // Test mid methods long mid = 123456L; doNothing().when(response).setMid(mid); when(response.getMid()).thenReturn(mid); response.setMid(mid); assertEquals(mid, response.getMid()); // Test command methods int command = 0x25; doNothing().when(response).setCommand(command);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/CommonServerMessageBlock.java
/** * Gets the message ID. * * @return the message id */ long getMid(); /** * Sets the message ID. * * @param mid the message ID to set */ void setMid(long mid); /** * Gets the SMB command. * * @return the command */ int getCommand(); /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/RequestWithPathTest.java
} @Override public void setResponse(CommonServerMessageBlockResponse msg) { } @Override public long getMid() { return 0; } @Override public void setMid(long mid) { } @Override public int getCommand() { return 0; } @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
/** * @return * @throws IOException */ private int negotiateWrite(final CommonServerMessageBlockRequest req, final boolean setmid) throws IOException { if (setmid) { makeKey(req); } else { req.setMid(0); this.mid.set(1); } final int n = req.encode(this.sbuf, 4);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 69.8K bytes - Click Count (0)