Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testReadByte (0.48 sec)

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

            // seek doesn't throw exception for negative position, it just sets it
            smbRandomAccessFile.seek(-1);
            assertEquals(-1, smbRandomAccessFile.getFilePointer());
        }
    
        @Test
        void testReadByte() throws SmbException {
            // Mock the read operation to return a specific byte
            doAnswer(new Answer<Void>() {
                @Override
                public Void answer(InvocationOnMock invocation) throws Throwable {
    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

            byte[] data = new byte[] { 0x00, 0x41, 0x00, 0x00 };
            PacDataInputStream pdis = createInputStream(data);
            assertEquals('A', pdis.readChar());
        }
    
        @Test
        public void testReadByte() throws IOException {
            byte[] data = new byte[] { 0x7F };
            PacDataInputStream pdis = createInputStream(data);
            assertEquals(0x7F, pdis.readByte());
        }
    
        @Test
    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