Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 99 for Getpid (0.05 sec)

  1. src/test/java/jcifs/smb/SmbFileTest.java

        private URL url;
    
        private SmbFile smbFile;
    
        @BeforeEach
        public void setUp() throws MalformedURLException, CIFSException {
            // Mock configuration methods
            when(mockConfig.getPid()).thenReturn(1234);
            when(mockCifsContext.getConfig()).thenReturn(mockConfig);
    
            // Mock credentials to prevent NPE
            when(mockCredentials.getUserDomain()).thenReturn("DOMAIN");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/Configuration.java

         */
        TimeZone getLocalTimezone();
    
        /**
         * Gets the process ID to use in SMB messages
         *
         * @return Process id to send, randomized if unset
         */
        int getPid();
    
        /**
         *
         * Property {@code jcifs.smb.client.maxMpxCount} (int, default 10)
         *
         * @return maximum count of concurrent commands to announce
         */
        int getMaxMpxCount();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/config/BaseConfiguration.java

            return this.oemEncoding;
        }
    
        @Override
        public TimeZone getLocalTimezone() {
            return this.localTimeZone;
        }
    
        @Override
        public int getPid() {
            return this.localPid;
        }
    
        @Override
        public boolean isSigningEnabled() {
            return this.signingPreferred;
        }
    
        @Override
        public boolean isSigningEnforced() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/RequestTest.java

                this.response = (TestResponse) msg;
            }
    
            @Override
            public long getMid() {
                return mid;
            }
    
            @Override
            public void setMid(long mid) {
                this.mid = mid;
            }
    
            @Override
            public int getCommand() {
                return command;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  5. cmd/test-utils_test.go

    // Temp files created in default Tmp dir
    var globalTestTmpDir = os.TempDir()
    
    // reseed - returns a new seed every time the function is called.
    func reseed() uint32 {
    	return uint32(time.Now().UnixNano() + int64(os.Getpid()))
    }
    
    // nextSuffix - provides a new unique suffix every time the function is called.
    func nextSuffix() string {
    	randmu.Lock()
    	r := randN
    	// Initial seed required, generate one.
    	if r == 0 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

        }
    
        @Test
        @DisplayName("Test setMid and getMid methods")
        void testSetAndGetMid() {
            // Given
            long expectedMid = 12345L;
            doNothing().when(messageBlock).setMid(expectedMid);
            when(messageBlock.getMid()).thenReturn(expectedMid);
    
            // When
            messageBlock.setMid(expectedMid);
            long actualMid = messageBlock.getMid();
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

                testRequest.setRequestCredits(credits);
                assertEquals(credits, testRequest.getCredit());
            }
    
            @Test
            @DisplayName("setTid should set tree ID")
            void testSetTid() {
                int tid = 12345;
                testRequest.setTid(tid);
                assertEquals(tid, testRequest.getTreeId());
            }
        }
    
        @Nested
        @DisplayName("Async Operation Tests")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/transport/ResponseTest.java

            long mid = 12345L;
            mockResponse.setMid(mid);
    
            // Verify that the method was called with the correct argument
            verify(mockResponse, times(1)).setMid(mid);
        }
    
        @Test
        void testGetMid() {
            long mid = 54321L;
            when(mockResponse.getMid()).thenReturn(mid);
            assertEquals(mid, mockResponse.getMid());
    
            // Verify the method was called
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            assertEquals(digest, response.getDigest());
    
            // Test mid methods
            long mid = 123456L;
            doNothing().when(response).setMid(mid);
            when(response.getMid()).thenReturn(mid);
            response.setMid(mid);
            assertEquals(mid, response.getMid());
    
            // Test command methods
            int command = 0x25;
            doNothing().when(response).setCommand(command);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/transport/Response.java

         */
        int getErrorCode();
    
        /**
         * Sets the message ID.
         *
         * @param k the message ID to set
         */
        void setMid(long k);
    
        /**
         * Gets the message ID.
         *
         * @return mid
         */
        long getMid();
    
        /**
         * Verifies the signature of this response.
         *
         * @param buffer the buffer containing the signature data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top