Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 203 for getMic (0.04 sec)

  1. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

         */
        public final int getTid() {
            return this.tid;
        }
    
        /**
         * @param tid
         *            the tid to set
         */
        @Override
        public final void setTid(final int tid) {
            this.tid = tid;
        }
    
        /**
         * Gets the process identifier
         * @return the pid
         */
        public final int getPid() {
            return this.pid;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  2. cmd/data-scanner-metric.go

    		return true
    	})
    	return i
    }
    
    // lifetime returns the lifetime count of the specified metric.
    func (p *scannerMetrics) lifetime(m scannerMetric) uint64 {
    	if m >= scannerMetricLast {
    		return 0
    	}
    	val := atomic.LoadUint64(&p.operations[m])
    	return val
    }
    
    // lastMinute returns the last minute statistics of a metric.
    // m should be < scannerMetricLastRealtime
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/transport/ResponseTest.java

        }
    
        @Test
        void testGetMid() {
            long mid = 54321L;
            when(mockResponse.getMid()).thenReturn(mid);
            assertEquals(mid, mockResponse.getMid());
    
            // Verify the method was called
            verify(mockResponse, times(1)).getMid();
        }
    
        @Test
        void testVerifySignature() {
            byte[] buffer = new byte[] { 1, 2, 3 };
            int offset = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dtyp/ACETest.java

        }
    
        @Test
        @DisplayName("Test getSID returns correct SID")
        void testGetSID() throws SmbException {
            assertNull(ace.getSID());
    
            SID testSid = new SID("S-1-5-21-1234567890-123456789-123456789-1000");
            ace.sid = testSid;
    
            assertSame(testSid, ace.getSID());
        }
    
        @Test
        @DisplayName("Test decode with offset")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            // Should return dataCount
            assertEquals(5, result);
        }
    
        @Test
        void testGetSid() {
            // Test the getSid method
            // By default, it should be 0
            assertEquals(0, response.getSid());
        }
    
        @Test
        void testGetResumeKey() {
            // Test the getResumeKey method
            // By default, it should be 0
    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/ACETest.java

            @Test
            @DisplayName("Should define getSID method returning SID")
            void shouldDefineMethods() {
                ACE ace = mock(ACE.class);
                SID mockSid = mock(SID.class);
                when(ace.getSID()).thenReturn(mockSid);
    
                SID result = ace.getSID();
                assertSame(mockSid, result);
                verify(ace).getSID();
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

            // When
            Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, mid, asyncId);
    
            // Then
            assertEquals(SMB2_CANCEL, request.getCommand());
            assertEquals(mid, request.getMid());
            assertEquals(asyncId, request.getAsyncId());
            assertTrue((request.getFlags() & SMB2_FLAGS_ASYNC_COMMAND) != 0, "Async flag should be set when asyncId is non-zero");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. 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
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/TreeConnectResponseTest.java

            void testGetTid() {
                // Given
                when(mockResponse.getTid()).thenReturn(12345);
    
                // When
                int tid = mockResponse.getTid();
    
                // Then
                assertEquals(12345, tid, "Should return the configured tree ID");
                verify(mockResponse).getTid();
            }
    
            @Test
            @DisplayName("Should return service type")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  10. 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++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
Back to top