- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 2,189 for whet (0.02 sec)
-
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
when(mockContext.getConfig()).thenReturn(mockConfig); request = new Smb2SessionSetupRequest(mockContext, TEST_SECURITY_MODE, TEST_CAPABILITIES, TEST_PREVIOUS_SESSION_ID, TEST_TOKEN); } @Test @DisplayName("Should create request with correct parameters") void testConstructorSetsCorrectParameters() throws Exception { // Given & When int securityMode = 0x03;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
README.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 15:19:49 UTC 2025 - 24.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
@BeforeEach void setUp() throws Exception { when(ctx.getConfig()).thenReturn(cfg); when(cfg.isSigningEnforced()).thenReturn(false); when(cfg.getSessionTimeout()).thenReturn(30_000); when(cfg.getResponseTimeout()).thenReturn(5_000); when(address.getHostAddress()).thenReturn("127.0.0.1"); when(address.getHostName()).thenReturn("localhost");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/DfsResolverTest.java
when(mockConfig.isDfsDisabled()).thenReturn(false); when(mockContext.getTransportPool()).thenReturn(mockTransportPool); when(mockTransportPool.getSmbTransport(any(), anyString(), anyInt(), anyBoolean(), anyBoolean())).thenReturn(mockTransport); when(mockTransport.unwrap(any())).thenReturn(mockTransport);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
public void testConstructor() throws Exception { // Given String oldFileName = "oldFile.txt"; String newFileName = "newFile.txt"; // When smbComRename = new SmbComRename(config, oldFileName, newFileName); // Then assertEquals(ServerMessageBlock.SMB_COM_RENAME, smbComRename.getCommand());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
when(mockContext.getConfig()).thenReturn(mockConfig); when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient); when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost); when(mockHost.getHostName()).thenReturn(TEST_HOSTNAME); when(mockConfig.getDefaultDomain()).thenReturn(TEST_DOMAIN); when(mockConfig.isUseUnicode()).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
samr.SamrSamEntry entry = new samr.SamrSamEntry(); when(mockNdrBuffer.dec_ndr_long()).thenReturn(1, 100); // idx, _name_bufferp when(mockNdrBuffer.dec_ndr_short()).thenReturn(4, 6); // length, maximum_length when(mockDeferredBuffer.dec_ndr_long()).thenReturn(3, 0, 2); // _name_buffers, 0, _name_bufferl when(mockDeferredBuffer.dec_ndr_short()).thenReturn((int) (short) 't', (int) (short) 'e');
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
when(mockDelegate.getSIDResolver()).thenReturn(mockSidResolver); assertEquals(mockSidResolver, cifsContextWrapper.getSIDResolver()); verify(mockDelegate).getSIDResolver(); } @Test void testHasDefaultCredentials_True() { // Test hasDefaultCredentials() method when true when(mockDelegate.hasDefaultCredentials()).thenReturn(true);
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/util/CryptoTest.java
@Test @DisplayName("Should calculate MD4 hash correctly") void testMD4Hash() { // Given String input = "Hello World"; byte[] data = input.getBytes(); // When MessageDigest md4 = Crypto.getMD4(); byte[] hash = md4.digest(data); // Then assertNotNull(hash); assertEquals(16, hash.length); // MD4 produces 128-bit hash }
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/DfsReferralDataTest.java
// When int result = mockReferralData.getPathConsumed(); // Then assertEquals(pathConsumed, result); verify(mockReferralData).getPathConsumed(); } @Test @DisplayName("Should get path") void testGetPath() { // Given String path = "/test/path";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0)