Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 393 for getPid (0.06 seconds)

  1. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

        }
    
        @Test
        @DisplayName("Test configuration usage")
        void testConfigurationUsage() {
            // Verify configuration is used - getPid() is called in parent constructor
            verify(mockConfig, atLeastOnce()).getPid();
        }
    
        @Test
        @DisplayName("Test transaction response with different commands")
        void testTransactionResponseWithDifferentCommands() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

            when(mockConfig.getPid()).thenReturn(1234);
    
            // When
            smbComTreeDisconnect = new SmbComTreeDisconnect(mockConfig);
    
            // Then
            assertNotNull(smbComTreeDisconnect);
            assertEquals(ServerMessageBlock.SMB_COM_TREE_DISCONNECT, smbComTreeDisconnect.getCommand());
            verify(mockConfig).getPid(); // Verify getPid was called
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.5K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            // Test at various positions in the buffer
            int[] positions = { 0, 10, 50, 100, 150 };
    
            for (int pos : positions) {
                when(mockConfig.getPid()).thenReturn(1234); // Mock getPid for each new instance
                response = new TestSmbComNtTransactionResponse(mockConfig); // Reset response
    
                // Fill buffer at position
                for (int i = 0; i < 37; i++) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java

            this.largeFile = largeFile;
        }
    
        /**
         * Returns the process ID associated with this lock range.
         *
         * @return the process ID
         */
        public int getPid() {
            return this.pid;
        }
    
        /**
         * Returns the starting byte offset of the lock range.
         *
         * @return the starting byte offset
         */
        public long getByteOffset() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/config/DelegatingConfiguration.java

            return this.delegate.getLocalTimezone();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#getPid()
         */
        @Override
        public int getPid() {
            return this.delegate.getPid();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#getMaxMpxCount()
         */
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            }
    
            @Test
            @DisplayName("Should throw NullPointerException with null configuration")
            void testConstructorWithNullConfig() {
                // The parent class requires a non-null configuration for getPid()
                assertThrows(NullPointerException.class, () -> {
                    new Trans2GetDfsReferralResponse(null);
                });
            }
        }
    
        @Nested
        @DisplayName("Constants Tests")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            assertNotNull(trans2QueryPathInfo);
    
            // Configuration is accessed during initialization
            // Verify at least that getPid() and getTransactionBufferSize() were called
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                this.andx.setFlags(getFlags());
                this.andx.setFlags2(getFlags2());
                this.andx.setTid(getTid());
                this.andx.setPid(getPid());
                this.andx.setUid(getUid());
                this.andx.setMid(getMid());
                this.andx.setUseUnicode(this.isUseUnicode());
    
                if (this.andx instanceof AndXServerMessageBlock) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            assertNotNull(trans2SetFileInfo);
    
            // Configuration is accessed during initialization
            // Verify at least that getPid() and getTransactionBufferSize() were called
        }
    
        @DisplayName("Test FileInformation encode returning different sizes")
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 10, 100, 1000 })
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

        class ConstructorTests {
    
            private Configuration mockConfig;
    
            @BeforeEach
            void setUp() {
                mockConfig = mock(Configuration.class);
                when(mockConfig.getPid()).thenReturn(12345);
            }
    
            @Test
            @DisplayName("Should initialize with correct command and MID")
            void testConstructorInitialization() throws Exception {
                // Given
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
Back to Top