Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 111 for Getuid (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

        }
    
        @Test
        @DisplayName("Test setTid sets tree ID")
        void testSetTid() {
            // Given
            Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, 1L, 0L);
            int treeId = 42;
    
            // When
            request.setTid(treeId);
    
            // Then
            assertEquals(treeId, request.getTreeId(), "Tree ID should be set correctly");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/persistent/HandleGuidTest.java

            UUID uuid = UUID.randomUUID();
            HandleGuid guid1 = new HandleGuid(uuid);
            HandleGuid guid2 = new HandleGuid(guid1.toBytes());
    
            assertEquals(guid1, guid2);
            assertEquals(uuid, guid1.getUuid());
        }
    
        @Test
        public void testHandleGuidInvalidBytes() {
            assertThrows(IllegalArgumentException.class, () -> {
                new HandleGuid(new byte[8]); // Wrong length
            });
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

                        th.getConfig().getListSize() - FIND_OVERHEAD), this.response);
    
                this.nextRequest = new Trans2FindNext2(th.getConfig(), this.response.getSid(), this.response.getResumeKey(),
                        this.response.getLastName(), th.getConfig().getListCount(), th.getConfig().getListSize() - FIND_OVERHEAD);
            } catch (final SmbException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SIDTest.java

            rpcSid.sub_authority = new int[] { 21, 123, 456, 789, 1000 };
    
            SID userSid = new SID(rpcSid, SID.SID_TYPE_USER, "MYDOMAIN", "user", false);
            assertEquals(1000, userSid.getRid());
        }
    
        /**
         * Test getting the RID from a domain SID.
         *
         * @throws SmbException if the SID string is invalid
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

                    seekReq.setMode(0x2); // from EOF
                    final SmbComSeekResponse seekResp = new SmbComSeekResponse(config);
                    seekReq.setFid(response.getFid());
                    try {
                        h.send(seekReq, seekResp);
                        if (log.isDebugEnabled() && seekResp.getOffset() != fileSize) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  6. 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 data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. 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)
  8. src/test/java/jcifs/config/BaseConfigurationTest.java

            assertNotNull(testConfig.getRandom());
            assertNotNull(testConfig.getLocalTimezone());
    
            // Check PID is set
            assertTrue(testConfig.getPid() >= 0);
            assertTrue(testConfig.getPid() < 65536);
    
            // Check machine ID
            assertNotNull(testConfig.getMachineId());
            assertEquals(32, testConfig.getMachineId().length);
    
            // Check native OS
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  9. 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")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFileOutputStream.java

                        len -= cnt;
                        off += cnt;
                    } else if (this.useNTSmbs) {
                        this.reqx.setParam(fh.getFid(), this.fp, len - w, b, off, w);
                        if ((flags & 1) != 0) {
                            this.reqx.setParam(fh.getFid(), this.fp, len, b, off, w);
                            this.reqx.setWriteMode(0x8);
                        } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top