- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 209 for getDdd (3.36 sec)
-
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java
// Test at various positions in the buffer int[] positions = { 0, 10, 50, 100, 150 }; for (int pos : positions) { when(mockConfig.getPid()).thenReturn(1234); // Mock getPid for each new instance response = new TestSmbComNtTransactionResponse(mockConfig); // Reset response // Fill buffer at position for (int i = 0; i < 37; i++) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
} @Test @DisplayName("Test configuration usage") void testConfigurationUsage() { // Verify configuration is used - getPid() is called in parent constructor verify(mockConfig, atLeastOnce()).getPid(); } @Test @DisplayName("Test transaction response with different commands") void testTransactionResponseWithDifferentCommands() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmUtil.java
public static byte[] getNTHash(final String password) { if (password == null) { throw new NullPointerException("Password parameter is required"); } final MessageDigest md4 = Crypto.getMD4(); md4.update(Strings.getUNIBytes(password)); return md4.digest(); } /** * Generates the NT password hash for the given password.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
@Mock private MessageDigest mockMd5; @BeforeEach void setUp() throws NoSuchAlgorithmException { // Mock Crypto.getMD5() to return our mockMd5 instance // This requires Mockito 3.4.0+ for MockedStatic // For simplicity, we'll assume Crypto.getMD5() is static and mock it. // If it's not static, we'd need to inject it or mock the class that provides it.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
} @Test @DisplayName("Test setMid and getMid methods") void testSetAndGetMid() { // Given long expectedMid = 12345L; doNothing().when(messageBlock).setMid(expectedMid); when(messageBlock.getMid()).thenReturn(expectedMid); // When messageBlock.setMid(expectedMid); long actualMid = messageBlock.getMid(); // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/SIDTest.java
rpcSid.sub_authority = new int[] { 21, 123, 456, 789, 1000 }; SID userSid = new SID(rpcSid, SID.SID_TYPE_USER, "MYDOMAIN", "user", false); assertEquals(1000, userSid.getRid()); } /** * Test getting the RID from a domain SID. * * @throws SmbException if the SID string is invalid */ @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.5K bytes - Viewed (0) -
src/main/java/jcifs/util/Crypto.java
*/ public static MessageDigest getMD4() { try { return MessageDigest.getInstance("MD4", getProvider()); } catch (final NoSuchAlgorithmException e) { throw new CIFSUnsupportedCryptoException(e); } } /** * Get an MD5 message digest instance. * @return MD5 digest instance */ public static MessageDigest getMD5() { try {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/config/BaseConfigurationTest.java
assertNotNull(testConfig.getRandom()); assertNotNull(testConfig.getLocalTimezone()); // Check PID is set assertTrue(testConfig.getPid() >= 0); assertTrue(testConfig.getPid() < 65536); // Check machine ID assertNotNull(testConfig.getMachineId()); assertEquals(32, testConfig.getMachineId().length); // Check native OS
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java
// Should return dataCount assertEquals(5, result); } @Test void testGetSid() { // Test the getSid method // By default, it should be 0 assertEquals(0, response.getSid()); } @Test void testGetResumeKey() { // Test the getResumeKey method // By default, it should be 0Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacSidAttributesTest.java
assertEquals(sidMock, pacSidAttributes.getId(), "The SID should match the one provided in the constructor."); assertEquals(attributes, pacSidAttributes.getAttributes(), "The attributes should match the ones provided in the constructor."); } /** * Test method for {@link jcifs.pac.PacSidAttributes#getId()}. */ @Test void testGetId() { // Test the getId method
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.6K bytes - Viewed (0)