Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testSetTid (0.04 sec)

  1. src/test/java/jcifs/util/transport/ResponseTest.java

            verify(mockResponse, times(1)).getErrorCode();
        }
    
        @Test
        void testSetMid() {
            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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacSidAttributesTest.java

        }
    
        /**
         * Test method for {@link jcifs.pac.PacSidAttributes#getId()}.
         */
        @Test
        void testGetId() {
            // Test the getId method
            assertEquals(sidMock, pacSidAttributes.getId(), "getId should return the correct SID.");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/PacGroupTest.java

        }
    
        /**
         * Test method for {@link jcifs.pac.PacGroup#getId()}.
         */
        @Test
        void testGetId() {
            // Test the getId method
            assertEquals(mockSid, pacGroup.getId(), "getId() should return the correct SID.");
        }
    
        /**
         * Test method for {@link jcifs.pac.PacGroup#getAttributes()}.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java

            assertEquals(0, response.fileType);
            assertEquals(0, response.deviceState);
            assertEquals(0, response.action);
            assertEquals(0, response.serverFid);
        }
    
        @Test
        void testSetFid() {
            response.fid = 123;
            assertEquals(123, response.fid);
        }
    
        @Test
        void testSetFileAttributes() {
            response.fileAttributes = 0x20; // ATTR_ARCHIVE
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            // With 0 entries, should return dataCount
            int result = response.readDataWireFormat(buffer, 0, 0);
            // 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() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top