- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 581 for verifyCn (1.48 sec)
-
src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java
* verifying interaction. */ private class RecordingFilter implements SmbFileFilter { private SmbFile lastFile; private String lastPath; @Override public boolean accept(SmbFile file) throws SmbException { lastFile = file; // Actually interact with the file to verify the mock interaction if (file != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java
MsrpcLsarOpenPolicy2 msrpcLsarOpenPolicy2 = new MsrpcLsarOpenPolicy2(server, access, mockPolicyHandle); // Then // Verify that the super constructor is called with correct arguments // Note: Directly verifying super constructor calls is not straightforward in JUnit/Mockito. // We verify the effects of the super constructor by checking the fields of the created object. // Assert object_attributes fields
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
* verifying that implementations honour the contract. */ @ExtendWith(MockitoExtension.class) public class AllocInfoTest { @Mock AllocInfo mockAllocInfo; /** * Happy path – verifies that getters return the values supplied by the * implementation. */ @Test @DisplayName("verify getters return stubbed values")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java
* This constructor used to instance a SigningDigest object for * signing/verifying SMB using kerberos session key. * The MAC Key = concat(Session Key, Digest of Challenge); * Because of Kerberos Authentication don't have challenge, * The MAC Key = Session Key * * @param macSigningKey * The MAC key used to sign or verify SMB. */ public SMB1SigningDigest(final byte[] macSigningKey) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
verify(mockNdrBuffer).enc_ndr_long(5); // current_uses verify(mockNdrBuffer).enc_ndr_referent("C:\\test", 1); verify(mockNdrBuffer).enc_ndr_referent("password", 1); verify(mockNdrBuffer).enc_ndr_referent(shareInfo502.security_descriptor, 1); // Verify string encodings verify(mockDeferredBuffer, times(4)).enc_ndr_string(anyString()); // Verify security descriptor encoding
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
verify(mockNdrBuffer).derive(anyInt()); // Verify each node byte is encoded verify(mockNdrBuffer).enc_ndr_small((byte) 0xAA); verify(mockNdrBuffer).enc_ndr_small((byte) 0xBB); verify(mockNdrBuffer).enc_ndr_small((byte) 0xCC); verify(mockNdrBuffer).enc_ndr_small((byte) 0xDD); verify(mockNdrBuffer).enc_ndr_small((byte) 0xEE);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
verify(mockDelegate).getConfig(); } @Test void testGetDfs() { // Test getDfs() method DfsResolver mockDfsResolver = mock(DfsResolver.class); when(mockDelegate.getDfs()).thenReturn(mockDfsResolver); assertEquals(mockDfsResolver, cifsContextWrapper.getDfs()); verify(mockDelegate).getDfs(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java
int currentIndex = 2 + descr.length; // Verify level (0x0001) assertEquals(1, (dst[currentIndex] & 0xFF) | ((dst[currentIndex + 1] & 0xFF) << 8)); currentIndex += 2; // Verify maxDataCount assertEquals(netServerEnum2.maxDataCount, (dst[currentIndex] & 0xFF) | ((dst[currentIndex + 1] & 0xFF) << 8)); currentIndex += 2; // Verify serverTypes
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
java.io.IOException ex = assertThrows(java.io.IOException.class, () -> transport.ensureConnected()); assertTrue(ex.getMessage().contains("connect")); verify(transport).ensureConnected(); } // Happy path: getDfsReferrals returns referral, verify arguments captured @Test @DisplayName("getDfsReferrals returns data and receives correct args") void getDfsReferrals_happy() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/NameServiceClientTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.net.InetAddress; import java.net.UnknownHostException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0)