Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for setCommand (0.16 sec)

  1. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            }
    
            @Test
            @DisplayName("Test command property")
            void testCommandProperty() {
                testBlock.setCommand(0x42);
                assertEquals(0x42, testBlock.getCommand());
            }
    
            @Test
            @DisplayName("Test flags property")
            void testFlagsProperty() {
                testBlock.setFlags((byte) 0x12);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

        }
    
        @Test
        @DisplayName("Test setCommand and getCommand methods")
        void testSetAndGetCommand() {
            // Given
            int expectedCommand = 0x73;
            doNothing().when(messageBlock).setCommand(expectedCommand);
            when(messageBlock.getCommand()).thenReturn(expectedCommand);
    
            // When
            messageBlock.setCommand(expectedCommand);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

                protected int readHeaderWireFormat(byte[] buffer, int bufferIndex) {
                    return 33;
                }
            };
            testBlock.configureForTest(true, 2);
            testBlock.setCommand((byte) ServerMessageBlock.SMB_COM_NT_CREATE_ANDX);
    
            byte[] buffer = new byte[1024];
            buffer[33] = 34; // wordCount for extended response
            buffer[34] = (byte) 0xFF; // andxCommand
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            // Test command methods
            int command = 0x25;
            doNothing().when(response).setCommand(command);
            when(response.getCommand()).thenReturn(command);
            response.setCommand(command);
            assertEquals(command, response.getCommand());
    
            // Test other setter methods
            doNothing().when(response).setUid(1000);
            response.setUid(1000);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/RequestTest.java

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

            @Test
            @DisplayName("Should get and set command")
            void testCommandProperty() {
                assertEquals(0, testMessage.getCommand());
                testMessage.setCommand(ServerMessageBlock2.SMB2_CREATE);
                assertEquals(ServerMessageBlock2.SMB2_CREATE, testMessage.getCommand());
            }
    
            @Test
            @DisplayName("Should get and set tree ID")
            void testTreeIdProperty() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  7. 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)
  8. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

        void testWriteParameterWordsWireFormatSecondary() {
            byte[] dst = new byte[256];
    
            // Change command to secondary
            transaction.setCommand(ServerMessageBlock.SMB_COM_NT_TRANSACT_SECONDARY);
    
            // Set up transaction parameters
            transaction.setTotalParameterCount(100);
            transaction.setTotalDataCount(200);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

                this.dataCount = Math.min(this.totalDataCount, available);
            } else {
                if (this.getCommand() != SMB_COM_NT_TRANSACT) {
                    this.setCommand(SMB_COM_TRANSACTION_SECONDARY);
                } else {
                    this.setCommand(SMB_COM_NT_TRANSACT_SECONDARY);
                }
                // totalParameterCount and totalDataCount are set ok from primary
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  10. 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)
Back to top