Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testReadFully (0.04 sec)

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

            int result = smbRandomAccessFile.skipBytes(skipAmount);
    
            assertEquals(skipAmount, result);
            assertEquals(skipAmount, smbRandomAccessFile.getFilePointer());
        }
    
        @Test
        void testReadFully() throws SmbException {
            byte[] buffer = new byte[5];
    
            // Mock the read operation
            doAnswer(new Answer<Void>() {
                @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            PacDataInputStream pdis = createInputStream(data);
            assertEquals(4, pdis.available());
            pdis.readByte();
            assertEquals(3, pdis.available());
        }
    
        @Test
        public void testReadFully() throws IOException {
            byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            PacDataInputStream pdis = createInputStream(data);
            byte[] buffer = new byte[4];
            pdis.readFully(buffer);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top