Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 6,880 for fill (0.02 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                int offset = 10;
                byte[] buffer = new byte[64];
                byte[] fileId = createTestData(16);
                byte oplockLevel = 0x02;
    
                // Fill some random data before offset
                Arrays.fill(buffer, 0, offset, (byte) 0xAB);
    
                // Write valid data at offset
                SMBUtil.writeInt2(24, buffer, offset);
                buffer[offset + 2] = oplockLevel;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            }
    
            @Test
            @DisplayName("Should update file ID multiple times")
            void testMultipleFileIdUpdates() {
                byte[] firstFileId = new byte[16];
                Arrays.fill(firstFileId, (byte) 0xAA);
                byte[] secondFileId = new byte[16];
                Arrays.fill(secondFileId, (byte) 0xBB);
    
                request.setFileId(firstFileId);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top