- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 150 for getPid (0.04 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java
@Mock private Configuration mockConfig; private SmbComSetInformationResponse response; @BeforeEach void setUp() { // Setup mock configuration to avoid NPE when(mockConfig.getPid()).thenReturn(12345); response = new SmbComSetInformationResponse(mockConfig); } @Test @DisplayName("Constructor accepts valid config") void constructorValid() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/ConfigurationTest.java
mockConfig.getCapabilities(); mockConfig.getFlags2(); mockConfig.getSessionLimit(); mockConfig.getOemEncoding(); mockConfig.getLocalTimezone(); mockConfig.getPid(); mockConfig.getMaxMpxCount(); mockConfig.isSigningEnabled(); mockConfig.isIpcSigningEnforced(); mockConfig.isSigningEnforced(); mockConfig.isEncryptionEnabled();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java
this.largeFile = largeFile; } /** * Returns the process ID associated with this lock range. * * @return the process ID */ public int getPid() { return this.pid; } /** * Returns the starting byte offset of the lock range. * * @return the starting byte offset */ public long getByteOffset() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
@Mock private Configuration mockConfig; private SmbComSeekResponse response; @BeforeEach void setUp() { // Setup mock configuration to avoid NPE when(mockConfig.getPid()).thenReturn(12345); response = new SmbComSeekResponse(mockConfig); } /* ------------------------------------------------------------------ */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
LockingAndXRange decoded = new LockingAndXRange(false); int decodedSize = decoded.decode(dst, 0, dst.length); assertEquals(10, decodedSize, "Decode should return size 10"); assertEquals(99, decoded.getPid()); assertEquals(123456L, decoded.getByteOffset()); assertEquals(654321L, decoded.getLengthInBytes()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
// Mock config methods needed for SMB1 when(config.getPid()).thenReturn(1234); SmbComTreeConnectAndXResponse response = mock(SmbComTreeConnectAndXResponse.class); when(response.getService()).thenReturn("A:"); when(response.isValidTid()).thenReturn(true); when(response.getTid()).thenReturn(1); when(session.send(any(), any())).thenReturn(response);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacGroupTest.java
assertEquals(mockSid, pacGroup.getId(), "The SID should be correctly set in the constructor."); assertEquals(attributes, pacGroup.getAttributes(), "The attributes should be correctly set in the constructor."); } /** * Test method for {@link jcifs.pac.PacGroup#getId()}. */ @Test void testGetId() { // Test the getId method
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryItemTest.java
item1.id = 100L; item2.id = 200L; assertEquals(100L, item1.getId()); assertEquals(200L, item2.getId()); // Verify they don't affect each other item1.id = 300L; assertEquals(300L, item1.getId()); assertEquals(200L, item2.getId()); } public void test_constructor() { // Test that constructor creates a valid instance
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacSidAttributesTest.java
assertEquals(sidMock, pacSidAttributes.getId(), "The SID should match the one provided in the constructor."); assertEquals(attributes, pacSidAttributes.getAttributes(), "The attributes should match the ones provided in the constructor."); } /** * Test method for {@link jcifs.pac.PacSidAttributes#getId()}. */ @Test void testGetId() { // Test the getId method
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java
// Should return dataCount assertEquals(5, result); } @Test void testGetSid() { // Test the getSid method // By default, it should be 0 assertEquals(0, response.getSid()); } @Test void testGetResumeKey() { // Test the getResumeKey method // By default, it should be 0
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0)