Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 22 of 22 for ArgumentCaptor (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            byte[] out = new byte[256];
    
            // Act
            int n = handle.sendrecv(out, 1, 10, in, 128);
    
            // Assert
            assertEquals(42, n);
            ArgumentCaptor<Smb2IoctlRequest> cap = ArgumentCaptor.forClass(Smb2IoctlRequest.class);
            verify(tree).send(cap.capture(), eq(RequestParam.NO_RETRY));
            assertNotNull(cap.getValue()); // captured request should be present
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            // Intercept the 3-arg write to validate len
            doNothing().when(raf).write(any(byte[].class), anyInt(), anyInt());
            raf.writeBoolean(true);
            raf.writeByte(0x7F);
            ArgumentCaptor<Integer> lenCap = ArgumentCaptor.forClass(Integer.class);
            verify(raf, atLeast(2)).write(any(byte[].class), anyInt(), lenCap.capture());
            assertTrue(lenCap.getAllValues().stream().allMatch(len -> len == 1));
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
Back to Top