Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testReadParameterWordsWireFormatWithZeroWordCount (1.1 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java

            assertEquals(1024, response.getSize());
        }
    
        /**
         * Test of readParameterWordsWireFormat method with zero word count.
         */
        @Test
        public void testReadParameterWordsWireFormatWithZeroWordCount() {
            byte[] buffer = new byte[20];
            response.wordCount = 0;
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
            assertEquals(0, bytesRead);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            // UTime is seconds since 1970, so we need to compare at second precision
            assertEquals(lastWriteTime / 1000, readTime / 1000);
        }
    
        @Test
        void testReadParameterWordsWireFormatWithZeroWordCount() {
            // Test reading when wordCount is 0
            response = new SmbComQueryInformationResponse(mockConfig, 0L);
    
            // Set wordCount to 0
            setFieldValue(response, "wordCount", 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top