Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 49 for getCommand (0.08 sec)

  1. src/main/java/jcifs/internal/CommonServerMessageBlock.java

         */
        void setMid(long mid);
    
        /**
         * Gets the SMB command.
         *
         * @return the command
         */
        int getCommand();
    
        /**
         * Sets the SMB command.
         *
         * @param command the command to set
         */
        void setCommand(int command);
    
        /**
         * Sets the user ID.
         *
         * @param uid the user ID to set
         */
        void setUid(int uid);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

        void testConstructorWithConfigOnly() {
            request = new Smb2SetInfoRequest(mockConfig);
    
            assertNotNull(request);
            // SMB2_SET_INFO command value is 0x0011
            assertEquals((short) 0x0011, request.getCommand());
    
            // Verify that default file ID is set
            byte[] expectedFileId = Smb2Constants.UNSPECIFIED_FILEID;
            Field fileIdField;
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

        void testConstructorWithConfig() {
            request = new Smb2QueryDirectoryRequest(mockConfig);
    
            assertNotNull(request);
            assertEquals(14, request.getCommand());
            verify(mockConfig).getMaximumBufferSize();
            verify(mockConfig).getListSize();
        }
    
        @Test
        @DisplayName("Test constructor with configuration and fileId")
    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/internal/smb1/trans/nt/SmbComNtTransactionTest.java

        void testConstructorInitialization() {
            // Verify that the transaction is properly initialized
            assertEquals(ServerMessageBlock.SMB_COM_NT_TRANSACT, transaction.getCommand());
    
            // Verify that transaction is properly initialized
            assertNotNull(transaction);
    
            // Verify primary setup offset (should be 71 as per NTT_PRIMARY_SETUP_OFFSET)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

            // Verify initialization
            assertNotNull(trans2QueryFSInfo);
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, trans2QueryFSInfo.getCommand());
            assertEquals(SmbComTransaction.TRANS2_QUERY_FS_INFORMATION, trans2QueryFSInfo.getSubCommand());
        }
    
        @Test
        @DisplayName("Test constructor with FS_SIZE_INFO")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            // Verify initialization
            assertNotNull(trans2SetFileInfo);
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, trans2SetFileInfo.getCommand());
            assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, trans2SetFileInfo.getSubCommand());
        }
    
        @Test
        @DisplayName("Test constructor with individual parameters")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java

            // When
            SmbComClose smbComClose = new SmbComClose(config, fid, lastWriteTime);
    
            // Then
            assertEquals(ServerMessageBlock.SMB_COM_CLOSE, smbComClose.getCommand());
            // Private fields are not directly accessible, but we can check their effect in other methods.
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            assertNotNull(response);
            // The command should be SMB_COM_TRANSACTION2 (0x32 = 50)
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, response.getCommand());
            // The subcommand should be TRANS2_FIND_FIRST2 (0x01 = 1)
            assertEquals(SmbComTransaction.TRANS2_FIND_FIRST2, response.getSubCommand());
        }
    
        @Test
        void testIsEndOfSearch() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/RequestWithPathTest.java

                return 0;
            }
    
            @Override
            public void setMid(long mid) {
            }
    
            @Override
            public int getCommand() {
                return 0;
            }
    
            @Override
            public void setCommand(int command) {
            }
    
            @Override
            public void setUid(int uid) {
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

                // Verify inheritance
                assertTrue(response instanceof ServerMessageBlock2);
    
                // Verify command can be retrieved from parent
                assertEquals(0, response.getCommand());
            }
    
            @Test
            @DisplayName("Should work with different buffer sizes")
            void testDifferentBufferSizes() throws SMBProtocolDecodingException {
                // Minimum size buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
Back to top