Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,360 for SHOULD (1.76 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcConstantsTest.java

            }
    
            @Test
            @DisplayName("DCERPC_LAST_FRAG should have correct value")
            void testDcerpcLastFrag() {
                assertEquals(0x02, DcerpcConstants.DCERPC_LAST_FRAG, "DCERPC_LAST_FRAG should be 0x02");
            }
    
            @Test
            @DisplayName("DCERPC_PENDING_CANCEL should have correct value")
            void testDcerpcPendingCancel() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // Then
            assertNotNull(nonce1, "First secure nonce should not be null");
            assertNotNull(nonce2, "Second secure nonce should not be null");
            assertFalse(Arrays.equals(nonce1, nonce2), "Secure nonces should be different");
            assertTrue(nonce1.length > 0, "Secure nonce should have proper length");
        }
    
        @Test
        @DisplayName("Should handle concurrent secure nonce generation safely")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/SecureKeyManagerTest.java

            assertNotNull(key1, "Should generate key 1");
            assertNotNull(key2, "Should generate key 2");
            assertEquals(32, key1.length, "Key 1 should have correct length");
            assertEquals(32, key2.length, "Key 2 should have correct length");
            assertFalse(Arrays.equals(key1, key2), "Random keys should be different");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/DcerpcBindingTest.java

            assertEquals(SERVER, dcerpcBinding.getServer(), "Server should match the constructor argument.");
            assertNull(dcerpcBinding.getOptions(), "Options should be null initially.");
            assertNull(dcerpcBinding.getEndpoint(), "Endpoint should be null initially.");
            assertNull(dcerpcBinding.getUuid(), "UUID should be null initially.");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java

         * It should always return 0.
         */
        @Test
        void testWriteSetupWireFormat() {
            byte[] dst = new byte[10];
            // The method should not write anything and return 0
            assertEquals(0, response.writeSetupWireFormat(dst, 0), "writeSetupWireFormat should return 0.");
        }
    
        /**
         * Test for the writeParametersWireFormat method.
         * It should always return 0.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            assertNotNull(encryptedStr, "Encrypted string should not be null");
            assertFalse(encryptedStr.contains("TestPassword456"), "Plaintext should not be visible in encrypted string");
    
            // Should be valid base64
            assertTrue(encryptedStr.matches("^[A-Za-z0-9+/]*={0,2}$"), "Should be valid Base64 format");
    
            // Decrypt from string
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                assertTrue(completed, "All verify operations should complete");
                assertEquals(threadCount * operationsPerThread, completedVerifies.get(), "All verifies should complete");
    
                // Performance check - should complete reasonably fast with optimized locking
                long duration = endTime - startTime;
                assertTrue(duration < 5000, "Concurrent verifies should complete within 5 seconds");
            }
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/DialectVersionTest.java

            assertTrue(DialectVersion.SMB302.compareTo(DialectVersion.SMB311) < 0);
        }
    
        @Test
        @DisplayName("Should identify SMB1 vs SMB2+ versions")
        void testSMBVersionIdentification() {
            // SMB1 should not be SMB2
            assertFalse(DialectVersion.SMB1.isSMB2());
    
            // SMB2+ versions should be identified as SMB2
            assertTrue(DialectVersion.SMB202.isSMB2());
            assertTrue(DialectVersion.SMB210.isSMB2());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

            assertEquals(2, trans.maxParameterCount, "The maxParameterCount should be 2.");
            assertEquals(40, trans.maxDataCount, "The maxDataCount should be 40.");
            assertEquals((byte) 0x00, trans.maxSetupCount, "The maxSetupCount should be 0.");
        }
    
        /**
         * Tests the writeSetupWireFormat method.
         */
        @Test
        void testWriteSetupWireFormat() {
            // Given
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            assertFalse(file.exists(), "File should not exist initially");
    
            file.createNewFile();
            assertTrue(file.exists(), "File should exist after creation");
            assertTrue(file.isFile(), "Should be identified as a file");
            assertFalse(file.isDirectory(), "Should not be identified as a directory");
            assertEquals(0, file.length(), "New file should have zero length");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
Back to top