Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 550 for correctos (0.05 sec)

  1. 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)
  2. src/test/java/jcifs/SmbTreeHandleTest.java

            // Verify that close() was called on the mock
            verify(smbTreeHandle).close();
        }
    
        /**
         * Test for close() method throwing CIFSException.
         * Verifies that the method correctly throws a CIFSException when configured to do so.
         * @throws CIFSException
         */
        @Test
        void testClose_throwsCIFSException() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            byte[] token = { 0x0A, 0x0B, 0x0C };
    
            Smb2SessionSetupRequest req = new Smb2SessionSetupRequest(mockContext, securityMode, capabilities, previousSessionId, token);
    
            // Then - verify fields are set correctly using reflection
            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
            int command = (int) commandField.get(req);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

            assertEquals("Structure size is not 16", exception.getMessage());
        }
    
        @DisplayName("Should parse different share types correctly")
        @ParameterizedTest
        @CsvSource({ "1, 1", // DISK
                "2, 2", // PIPE
                "3, 3", // PRINT
                "0, 0", // Unknown
                "255, -1" // Byte overflow to signed
        })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

     * The tests verify that:
     * <ul>
     *   <li>encoding and decoding round‑trip correctly handle typical, zero,
     *       and extreme {@code long} values.</li>
     *   <li>encode/decode methods interact correctly with a mocked
     *       {@link NdrBuffer} so that the correct method is called with
     *       the correct argument.</li>
     *   <li>passing {@code null} throws {@link NullPointerException}.
     * </ul>
     *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. 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)
  7. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

            }
        }
    
        @Nested
        @DisplayName("Encoding Tests")
        class EncodingTests {
    
            @Test
            @DisplayName("Should encode single cipher correctly")
            void testEncodeSingleCipher() {
                int[] ciphers = { EncryptionNegotiateContext.CIPHER_AES128_CCM };
                EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, ciphers);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. 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)
  9. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseStateTest.java

            assertEquals(0x05, Smb2LeaseState.SMB2_LEASE_READ_WRITE);
            assertEquals(0x07, Smb2LeaseState.SMB2_LEASE_FULL);
        }
    
        @Test
        @DisplayName("Should detect read caching correctly")
        void testHasReadCaching() {
            assertTrue(Smb2LeaseState.hasReadCaching(Smb2LeaseState.SMB2_LEASE_READ_CACHING));
            assertTrue(Smb2LeaseState.hasReadCaching(Smb2LeaseState.SMB2_LEASE_READ_HANDLE));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/PacSidAttributesTest.java

        }
    
        /**
         * Test method for {@link jcifs.pac.PacSidAttributes#getAttributes()}.
         */
        @Test
        void testGetAttributes() {
            // Test the getAttributes method
            assertEquals(attributes, pacSidAttributes.getAttributes(), "getAttributes should return the correct attributes.");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top