Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,723 for SHOULD (0.04 sec)

  1. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java

            assertEquals(smbComNtTransaction.parameterOffset, SmbComTransaction.readInt4(dst, 23),
                    "parameterOffset should be written correctly");
            assertEquals(smbComNtTransaction.dataCount, SmbComTransaction.readInt4(dst, 27), "dataCount should be written correctly");
            assertEquals(smbComNtTransaction.dataOffset, SmbComTransaction.readInt4(dst, 31), "dataOffset should be written correctly");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java

            assertNotNull(password, "Password char array should not be null");
            assertArrayEquals(testPassword.toCharArray(), password, "Password should match");
    
            // Verify it returns a clone, not the original
            password[0] = 'X';
            char[] password2 = authenticator.getPasswordAsCharArray();
            assertNotEquals(password[0], password2[0], "Should return a clone, not the original");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java

        @DisplayName("MonotonicClock singleton instance should always return the same instance")
        void testSingletonInstance() {
            MonotonicClock clock1 = MonotonicClock.get();
            MonotonicClock clock2 = MonotonicClock.get();
    
            assertSame(clock1, clock2, "Multiple calls to get() should return the same instance");
        }
    
        @Test
        @DisplayName("MonotonicClock should always use UTC timezone")
        void testClockTimezone() {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

            assertNull(ex.getMessage(), "Default ctor should not set a message");
            assertNull(ex.getCause(), "Default ctor should not set a cause");
            assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
            // SmbException default ctor leaves status 0, which equals NT_STATUS_SUCCESS
            assertEquals(NtStatus.NT_STATUS_SUCCESS, ex.getNtStatus(), "Default status should be success (0)");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/util/StringUtilTest.java

    /**
     * Test class for StringUtil utility methods
     */
    class StringUtilTest {
    
        @Test
        @DisplayName("Should join single element without delimiter")
        void testJoinSingleElement() {
            String result = StringUtil.join(",", "hello");
            assertEquals("hello", result);
        }
    
        @Test
        @DisplayName("Should join two elements with delimiter")
        void testJoinTwoElements() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

            assertTrue(infoString.contains("alloc=1000"), "toString should contain alloc");
            assertTrue(infoString.contains("free=500"), "toString should contain free");
            assertTrue(infoString.contains("sectPerAlloc=100"), "toString should contain sectPerAlloc");
            assertTrue(infoString.contains("bytesPerSect=512"), "toString should contain bytesPerSect");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top