- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 204 for captor (0.44 sec)
-
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
// Close should have sent FindClose2 exactly once ArgumentCaptor<SmbComFindClose2> captor = ArgumentCaptor.forClass(SmbComFindClose2.class); verify(tree, times(1)).send(captor.capture(), any()); assertNotNull(captor.getValue()); // Tree handle is released after close verify(tree, atLeastOnce()).release(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
assertEquals(42, read); // Verify we issued an SMB2 IOCTL ArgumentCaptor<Smb2IoctlRequest> captor = ArgumentCaptor.forClass(Smb2IoctlRequest.class); verify(tree).send(captor.capture(), any()); assertNotNull(captor.getValue()); } @Test @DisplayName("recv delegates to input.readDirect and returns its value")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
assertNotNull(handle); ArgumentCaptor<MsrpcSamrConnect4> captor = ArgumentCaptor.forClass(MsrpcSamrConnect4.class); verify(mockHandle).sendrecv(captor.capture()); assertEquals("\\\\", captor.getValue().system_name); // Verify server name in RPC call } } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
ArgumentCaptor<SmbResource> captor = ArgumentCaptor.forClass(SmbResource.class); verify(filter, times(2)).accept(captor.capture()); assertNotNull(r); assertTrue(r.getName().startsWith("TAKEME")); // The first filtered resource name should correspond to the rejected entry assertTrue(captor.getAllValues().get(0).getName().startsWith("SKIPME")); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
// Assert: verify return and the captured argument equals input assertTrue(result); ArgumentCaptor<Integer> captor = ArgumentCaptor.forClass(Integer.class); verify(handle, times(1)).hasCapability(captor.capture()); assertEquals(cap, captor.getValue()); } @Test @DisplayName("hasCapability(cap): propagates CIFSException on failure")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDCacheImplTest.java
// Verify resolveSids0 called exactly once with the two SIDs needing resolution ArgumentCaptor<SID[]> captor = ArgumentCaptor.forClass(SID[].class); verify(cache, times(1)).resolveSids0(isNull(), same(ctx), captor.capture()); SID[] resolvedFirst = captor.getValue(); assertEquals(2, resolvedFirst.length); assertEquals("user1", ((SID) resolvedFirst[0]).acctName);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
// Assert: resolver.resolveSids called with this SID ArgumentCaptor<jcifs.SID[]> captor = ArgumentCaptor.forClass(jcifs.SID[].class); verify(mockResolver, times(1)).resolveSids(same(mockCtx), eq("server.example"), captor.capture()); assertSame(sid, captor.getValue()[0]); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java
verify(locator).handleDFSReferral(referral, null); verifyNoMoreInteractions(locator); } // Interaction detail: capture arguments passed to handleDFSReferral @Test @DisplayName("handleDFSReferral receives the exact arguments via captor") void handleDfsReferralArgumentCapture() { when(locator.handleDFSReferral(any(), any())).thenReturn("ok"); String req = "some/path";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java
// Use ArgumentCaptor to capture the MsrpcSamrOpenDomain instance passed to sendrecv private ArgumentCaptor<MsrpcSamrOpenDomain> openDomainCaptor; // Use ArgumentCaptor to capture the MsrpcSamrCloseHandle instance passed to sendrecv private ArgumentCaptor<MsrpcSamrCloseHandle> closeHandleCaptor; @BeforeEach void setUp() { // Initialize mocks and captors before each test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosErrorTest.java
ArgumentCaptor<Integer> ntCaptor = ArgumentCaptor.forClass(Integer.class); verify(consumer, times(3)).accept(dosCaptor.capture(), ntCaptor.capture()); assertIterableEquals(Arrays.asList(0x00000000, 0x00050001, 0x007b0001), dosCaptor.getAllValues()); assertIterableEquals(Arrays.asList(0x00000000, 0xc0000022, 0xc0000033), ntCaptor.getAllValues());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.9K bytes - Viewed (0)