Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testSizeCalculation (0.1 sec)

  1. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                assertEquals(0, decoded.getHashAlgos().length);
                assertEquals(0, decoded.getSalt().length);
            }
    
            @Test
            @DisplayName("Should calculate size correctly")
            void testSizeCalculation() {
                // Test with various combinations
                context = new PreauthIntegrityNegotiateContext(mockConfig, new int[3], new byte[32]);
                assertEquals(4 + 6 + 32, context.size()); // header + 3*2 + 32
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 1, 3, 5, 10 })
            @DisplayName("Should calculate size correctly for different hash algo counts")
            void testSizeCalculation(int hashAlgoCount) {
                // Arrange
                int[] hashAlgos = new int[hashAlgoCount];
                byte[] salt = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                    "'\\\\server\\share\\very\\long\\path\\with\\many\\segments', 100" })
            void testSizeCalculation(String path, int expectedSize) {
                buffer = new DfsReferralRequestBuffer(path, 3);
    
                assertEquals(expectedSize, buffer.size());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
Back to top