- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for thenAnswer (0.04 seconds)
-
src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java
public void setUp() throws Exception { mocks = MockitoAnnotations.openMocks(this); // Set up mock provider to return TCP memory regions when(mockProvider.registerMemory(any(ByteBuffer.class), any())).thenAnswer(invocation -> { ByteBuffer buffer = invocation.getArgument(0); EnumSet<RdmaAccess> access = invocation.getArgument(1); return new TcpMemoryRegion(buffer, access); });
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 7.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/ShareEnumIteratorTest.java
entry("keep2", SmbConstants.TYPE_SHARE)); // Filter accepts names starting with "keep" when(filter.accept(any())).thenAnswer(inv -> { SmbResource res = inv.getArgument(0); return res.getName().startsWith("keep"); }); ShareEnumIterator it = new ShareEnumIterator(parent, entries.iterator(), filter);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.1K bytes - Click Count (0)