Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 960 for correctly (0.04 sec)

  1. src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java

            // Verify the raw bytes are correctly stored
            assertArrayEquals(rawBytes, avTargetName.getRaw(), "Raw bytes should match the input");
        }
    
        /**
         * Test constructor with a target name string.
         * Verifies that the string is correctly encoded to UTF-16LE bytes and stored.
         */
        @Test
        void testConstructorWithString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/DcerpcBindingTest.java

            assertNotNull(dcerpcBinding.getUuid(), "UUID should be set for a valid pipe endpoint.");
            assertEquals("4B324FC8-1670-01D3-1278-5A47BF6EE188", dcerpcBinding.getUuid().toString(), "UUID should be parsed correctly.");
            assertEquals(3, dcerpcBinding.getMajor(), "Major version should be parsed correctly.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/UUIDTest.java

                assertEquals(CLOCK_SEQ_HI_AND_RESERVED, uuid.clock_seq_hi_and_reserved, "clock_seq_hi_and_reserved should be parsed correctly");
                assertEquals(CLOCK_SEQ_LOW, uuid.clock_seq_low, "clock_seq_low should be parsed correctly");
                assertArrayEquals(NODE, uuid.node, "node array should be parsed correctly");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacGroupTest.java

         */
        @Test
        void testConstructor() {
            // Verify that the constructor correctly sets the id and attributes
            assertEquals(mockSid, pacGroup.getId(), "The SID should be correctly set in the constructor.");
            assertEquals(attributes, pacGroup.getAttributes(), "The attributes should be correctly set in the constructor.");
        }
    
        /**
         * Test method for {@link jcifs.pac.PacGroup#getId()}.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            // Test with zero
            buffer.putInt(0, 0);
            assertEquals(0, NtlmMessage.readULong(data, 0), "Should read zero ULong correctly.");
    
            // Test with max int value (unsigned interpretation)
            buffer.putInt(0, 0xFFFFFFFF);
            assertEquals(0xFFFFFFFF, NtlmMessage.readULong(data, 0), "Should read max ULong correctly.");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

            // Then
            assertEquals(mid, request.getMid(), "MID should be set correctly");
            assertEquals(asyncId, request.getAsyncId(), "AsyncId should be set correctly");
            assertEquals(credits, request.getCredit(), "Credits should be set correctly");
            assertEquals(treeId, request.getTreeId(), "Tree ID should be set correctly");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java

            assertEquals(smbComNtTransaction.dataCount, SmbComTransaction.readInt4(dst, 27), "dataCount should be written correctly");
            assertEquals(smbComNtTransaction.dataOffset, SmbComTransaction.readInt4(dst, 31), "dataOffset should be written correctly");
            assertEquals(smbComNtTransaction.setupCount, dst[35], "setupCount 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)
  8. src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java

            assertEquals(positiveValue, ndrLongPositive.value, "Constructor should correctly initialize with a positive value.");
    
            // Test case 2: Negative value
            int negativeValue = -54321;
            NdrLong ndrLongNegative = new NdrLong(negativeValue);
            assertEquals(negativeValue, ndrLongNegative.value, "Constructor should correctly initialize with a negative value.");
    
            // Test case 3: Zero value
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                return 0;
            }
        }
    
        @Nested
        @DisplayName("Interface Tests")
        class InterfaceTests {
    
            @Test
            @DisplayName("Should implement getContextType correctly")
            void testGetContextType() {
                // Test with different context types
                TestNegotiateContextRequest request1 = new TestNegotiateContextRequest(0x1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbResourceTest.java

                // Then
                assertEquals(currentTime, lastModified, "Should return correct last modified time");
                assertEquals(currentTime - 1000, lastAccess, "Should return correct last access time");
                assertEquals(currentTime - 2000, createTime, "Should return correct create time");
                assertTrue(createTime <= lastAccess, "Create time should be before or equal to last access");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
Back to top