- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 164 for setPid (0.17 seconds)
-
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/internal/smb2/ServerMessageBlock2Request.java
} return resp; } /** * {@inheritDoc} * * @see jcifs.internal.CommonServerMessageBlockRequest#setTid(int) */ @Override public void setTid(final int t) { setTreeId(t); } /** * {@inheritDoc} * * @see jcifs.internal.smb2.ServerMessageBlock2#encode(byte[], int) */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Mon Aug 25 14:34:10 GMT 2025 - 7.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
testMessage.setMid(12345L); other.setMid(12345L); assertTrue(testMessage.equals(other)); } @Test @DisplayName("Should not be equal when MIDs differ") void testNotEqualsDifferentMid() { TestServerMessageBlock2 other = new TestServerMessageBlock2(mockConfig); testMessage.setMid(12345L); other.setMid(67890L);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 39.5K 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/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/internal/smb1/trans/nt/SmbComNtCancelTest.java
class ConstructorTests { private Configuration mockConfig; @BeforeEach void setUp() { mockConfig = mock(Configuration.class); when(mockConfig.getPid()).thenReturn(12345); } @Test @DisplayName("Should initialize with correct command and MID") void testConstructorInitialization() throws Exception { // GivenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/NotifyResponseTest.java
public void setResponse(CommonServerMessageBlockResponse msg) { this.response = msg; } @Override public long getMid() { return this.mid; } @Override public void setMid(long mid) { this.mid = mid; } @Override public int getCommand() { return this.command; }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java
// Set MID to 0 transaction.setMid(0); // Create cancel request CommonServerMessageBlockRequest cancelRequest = transaction.createCancel(); // Verify it still creates a valid cancel request assertNotNull(cancelRequest); assertTrue(cancelRequest instanceof SmbComNtCancel); assertEquals(0, cancelRequest.getMid()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
// ignore } /** * {@inheritDoc} * * @see jcifs.internal.CommonServerMessageBlock#setUid(int) */ @Override public void setUid(final int uid) { // ignore } /** * Gets the flags for this message. * * @return the flags */ public final int getFlags() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 24K bytes - Click Count (0) -
src/test/java/jcifs/internal/TreeConnectResponseTest.java
void testGetTid() { // Given when(mockResponse.getTid()).thenReturn(12345); // When int tid = mockResponse.getTid(); // Then assertEquals(12345, tid, "Should return the configured tree ID"); verify(mockResponse).getTid(); } @Test @DisplayName("Should return service type")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.9K bytes - Click Count (0)