- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 6,880 for fill (0.02 sec)
-
src/test/java/jcifs/util/SecureCredentialStorageTest.java
assertArrayEquals(plaintext, decrypted1); assertArrayEquals(plaintext, decrypted2); // Clean up Arrays.fill(plaintext, '\0'); Arrays.fill(decrypted1, '\0'); Arrays.fill(decrypted2, '\0'); } @Test public void testBase64StringOperations() throws Exception { char[] plaintext = "TestPassword456".toCharArray();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
request.setCloseFlags(0x0001); // Change file ID byte[] newFileId1 = new byte[16]; Arrays.fill(newFileId1, (byte) 0xAA); request.setFileId(newFileId1); // Change flags request.setCloseFlags(0x0000); // Change file ID again byte[] newFileId2 = new byte[16]; Arrays.fill(newFileId2, (byte) 0xBB); request.setFileId(newFileId2);
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/internal/smb2/Smb2SigningDigestTest.java
Security.addProvider(new BouncyCastleProvider()); } } @BeforeEach void setup() { sessionKey = new byte[16]; Arrays.fill(sessionKey, (byte) 0xAA); preauthIntegrityHash = new byte[64]; Arrays.fill(preauthIntegrityHash, (byte) 0xBB); } @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
} @Test @DisplayName("Should skip reserved bytes without modification") void testEncodeReservedBytes() { // Given Arrays.fill(buffer, (byte) 0xFF); // Fill with non-zero SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey); // When copy.encode(buffer, startIndex); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java
void testDecodeValidResumeKey() throws SMBProtocolDecodingException { // Prepare test data - 24 bytes for resume key + 4 bytes for context length byte[] buffer = new byte[28]; // Fill resume key with test pattern for (int i = 0; i < 24; i++) { buffer[i] = (byte) (i + 1); } // Add context length (reserved) - 4 bytes buffer[24] = 0x00;
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/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
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/internal/smb2/lock/Smb2LockRequestTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
} @Test @DisplayName("Should handle empty file ID") void testSetEmptyFileId() { // Given RequestWithFileId request = new Smb2CloseRequest(mockConfig, testFileId); // When request.setFileId(emptyFileId); // Then - should accept empty file ID
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
assertNotNull(passwordArray); assertArrayEquals(testPassword.toCharArray(), passwordArray); // Verify that returned array is a copy Arrays.fill(passwordArray, 'X'); assertEquals(testPassword, auth.getPassword()); } /** * Test secure password wiping */ @Test public void testSecureWipePassword() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
request.writeBytesWireFormat(smallBuffer, 0); }); } @Test @DisplayName("Test file ID boundary values") void testFileIdBoundaryValues() { // Test with file ID having maximum byte values byte[] maxFileId = new byte[16]; Arrays.fill(maxFileId, (byte) 0xFF); Smb2FlushRequest maxRequest = new Smb2FlushRequest(mockConfig, maxFileId);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0)