- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testReadByte (0.06 seconds)
-
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 {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 9.2K bytes - Click Count (0)