Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for testWriteBytesWireFormat (1.35 sec)

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

            int result = smbComQueryInformation.writeParameterWordsWireFormat(new byte[0], 0);
            assertEquals(0, result);
        }
    
        @Test
        public void testWriteBytesWireFormat() {
            // Test the writing of bytes to a byte array
            byte[] dst = new byte[100];
            int bytesWritten = smbComQueryInformation.writeBytesWireFormat(dst, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

            byte[] dst = new byte[10];
            int result = smbCom.writeParameterWordsWireFormat(dst, 0);
            assertEquals(0, result);
        }
    
        @Test
        void testWriteBytesWireFormat() {
            // Test the byte format written by the class
            String directoryName = "\testDir";
            SmbComCreateDirectory smbCom = new SmbComCreateDirectory(mockConfig, directoryName);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java

            // This method does nothing and should return 0.
            assertEquals(0, bytesWritten);
        }
    
        /**
         * Test the writeBytesWireFormat method.
         */
        @Test
        void testWriteBytesWireFormat() {
            SmbComWriteAndXResponse response = new SmbComWriteAndXResponse();
            byte[] dst = new byte[0];
    
            int bytesWritten = response.writeBytesWireFormat(dst, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java

        }
    
        @Test
        public void testWriteParameterWordsWireFormat() {
            assertEquals(0, response.writeParameterWordsWireFormat(new byte[0], 0));
        }
    
        @Test
        public void testWriteBytesWireFormat() {
            assertEquals(0, response.writeBytesWireFormat(new byte[0], 0));
        }
    
        @Test
        public void testReadBytesWireFormat() {
            assertEquals(0, response.readBytesWireFormat(new byte[0], 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComBlankResponseTest.java

        }
    
        /**
         * Test for the writeBytesWireFormat method.
         * It should always return 0.
         */
        @Test
        void testWriteBytesWireFormat() {
            assertEquals(0, response.writeBytesWireFormat(buffer, 0), "writeBytesWireFormat should return 0");
        }
    
        /**
         * Test for the readParameterWordsWireFormat method.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java

            assertEquals(2, bytesWritten);
            // ATTR_HIDDEN (0x02) | ATTR_SYSTEM (0x04) = 0x06
            assertEquals(0x06, dst[0]);
            assertEquals(0x00, dst[1]);
        }
    
        @Test
        public void testWriteBytesWireFormat() {
            // Test the writing of bytes to a byte array
            byte[] dst = new byte[100];
            int bytesWritten = smbComDelete.writeBytesWireFormat(dst, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComTreeDisconnectTest.java

            // Then
            assertEquals(0, result, "writeParameterWordsWireFormat should return 0");
        }
    
        /**
         * Test the writeBytesWireFormat method.
         */
        @Test
        void testWriteBytesWireFormat() {
            // Given
            SmbComTreeDisconnect smbComTreeDisconnect = new SmbComTreeDisconnect();
            byte[] dst = new byte[10];
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

        }
    
        /**
         * Test the writeBytesWireFormat method.
         * It should write the dialect string to the destination array.
         */
        @Test
        void testWriteBytesWireFormat() throws UnsupportedEncodingException {
            byte[] expectedBytes = DIALECTS.getBytes("ASCII");
            byte[] dst = new byte[expectedBytes.length];
            int dstIndex = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComDeleteDirectoryTest.java

            int result = sdd.writeParameterWordsWireFormat(dst, 0);
            assertEquals(0, result);
        }
    
        /**
         * Test writeBytesWireFormat.
         */
        @Test
        void testWriteBytesWireFormat() {
            // Assuming path is ASCII and does not use unicode
            String dirName = "\testDir";
            SmbComDeleteDirectory sdd = new SmbComDeleteDirectory(dirName);
            sdd.useUnicode = false;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

            assertEquals(0, response.writeParameterWordsWireFormat(null, 0), "Should write 0 bytes");
        }
    
        @Test
        @DisplayName("writeBytesWireFormat returns zero bytes written")
        void testWriteBytesWireFormat() {
            byte[] buf = new byte[10];
            assertEquals(0, response.writeBytesWireFormat(buf, 0), "Should write 0 bytes");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top