Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 49 for setCommand (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

            request = new Smb2QueryInfoRequest(mockConfig);
    
            assertNotNull(request);
            // SMB2_QUERY_INFO command value is 0x0010
            assertEquals((short) 0x0010, 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
    - 22.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java

            // Arrange
            transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, testPipeName);
    
            // Assert
            assertEquals(SmbComTransaction.SMB_COM_TRANSACTION, transWaitNamedPipe.getCommand());
            assertEquals(SmbComTransaction.TRANS_WAIT_NAMED_PIPE, transWaitNamedPipe.getSubCommand());
        }
    
        @Test
        @DisplayName("Multiple wire format operations should be consistent")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test\\path", "*.txt", 0x16, 10, 1024);
    
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, trans2FindFirst2.getCommand());
            assertEquals(Trans2FindFirst2.TRANS2_FIND_FIRST2, trans2FindFirst2.getSubCommand());
            assertEquals("\\test\\path\\", trans2FindFirst2.getPath());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

        @Test
        @DisplayName("Test constructor initialization")
        void testConstructor() {
            // Verify command and subcommand are set correctly
            assertEquals(SmbComTransaction.SMB_COM_TRANSACTION, transaction.getCommand());
            assertEquals(SmbComTransaction.TRANS2_FIND_FIRST2, transaction.getSubCommand());
    
            // Verify maxDataCount and maxParameterCount are initialized
            assertTrue(transaction.maxDataCount > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top