Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 574 for correctos (0.32 sec)

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

            int mode = response.getSecurityMode();
    
            // Then
            assertEquals(Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED, mode);
        }
    
        @Test
        @DisplayName("Should check capability correctly")
        void testHaveCapability() throws Exception {
            // Given
            setPrivateField(response, "commonCapabilities", 0x2F); // 0010 1111
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                int bytesRead = notification.readBytesWireFormat(buffer, 0);
    
                // Verify the bytes read
                assertEquals(24, bytesRead);
    
                // Verify the fields were set correctly using reflection
                Field oplockLevelField = Smb2OplockBreakNotification.class.getDeclaredField("oplockLevel");
                oplockLevelField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

        class GetterTests {
    
            @Test
            @DisplayName("getPtype should return correct packet type")
            void testGetPtype() {
                message.ptype = DcerpcConstants.RPC_PT_REQUEST;
                assertEquals(DcerpcConstants.RPC_PT_REQUEST, message.getPtype());
            }
    
            @Test
            @DisplayName("getFlags should return correct flags")
            void testGetFlags() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/CryptoTest.java

    import jcifs.BaseTest;
    
    /**
     * Test class for Crypto utility functionality
     */
    @DisplayName("Crypto Utility Tests")
    class CryptoTest extends BaseTest {
    
        @Test
        @DisplayName("Should calculate MD4 hash correctly")
        void testMD4Hash() {
            // Given
            String input = "Hello World";
            byte[] data = input.getBytes();
    
            // When
            MessageDigest md4 = Crypto.getMD4();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            }
        }
    
        @Nested
        @DisplayName("FileId Tests")
        class FileIdTests {
    
            @Test
            @DisplayName("Should set file ID correctly")
            void testSetFileId() {
                byte[] newFileId = new byte[16];
                new SecureRandom().nextBytes(newFileId);
    
                assertDoesNotThrow(() -> request.setFileId(newFileId));
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/HandlerTest.java

            // Act & Assert
            assertThrows(NullPointerException.class, () -> handler.openConnection(null));
        }
    
        @Test
        @DisplayName("URL created with handler parses SMB URL correctly")
        void testUrlCreationWithHandler() throws Exception {
            // Act - Create various SMB URLs using the handler
            URL url1 = new URL(null, "smb://host/share", handler);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                // Verify source key is copied correctly
                for (int i = 0; i < SOURCE_KEY_SIZE; i++) {
                    assertEquals(sourceKey[i], buffer[startIndex + i], "Source key byte at position " + i + " doesn't match");
                }
            }
    
            @Test
            @DisplayName("Should encode chunk count correctly")
            void testEncodeChunkCount() {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            @Test
            @DisplayName("Should return correct transport context")
            void testGetTransportContext() throws Exception {
                DcerpcPipeHandle handle = createMockedDcerpcPipeHandle();
                assertEquals(mockContext, handle.getTransportContext());
            }
    
            @Test
            @DisplayName("Should return correct server name")
            void testGetServer() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  9. src/test/java/jcifs/MsrpcGetMembersInAliasTest.java

        @Mock
        private lsarpc.LsarSidArray mockSids;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        @DisplayName("Should correctly initialize MsrpcGetMembersInAlias with provided parameters")
        void testConstructorInitialization() {
            // Given
            // Mocks are already initialized by @BeforeEach
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java

            verify(mockBuffer).dec_ndr_long();
        }
    
        /**
         * Test case for the encode method when it throws an NdrException.
         * Verifies that the exception is correctly propagated.
         */
        @Test
        void testEncodeThrowsNdrException() {
            // Given
            ndrObject.setThrowOnEncode(true);
    
            // When & Then
            assertThrows(NdrException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
Back to top