Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 884 for timer (0.03 sec)

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

            // Verify precise interactions
            verify(mockEntry, times(1)).getName();
            verify(mockEntry, times(2)).getType();
            verify(mockEntry, times(1)).getAttributes();
            verify(mockEntry, times(1)).createTime();
            verify(mockEntry, times(1)).lastModified();
            verify(mockEntry, times(1)).lastAccess();
            verify(mockEntry, times(1)).length();
            verify(mockEntry, never()).getFileIndex();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/RequestWithPathTest.java

            requestWithPath.setResolveInDfs(true);
            verify(requestWithPath, times(1)).setResolveInDfs(true);
    
            doNothing().when(requestWithPath).setResolveInDfs(false);
            requestWithPath.setResolveInDfs(false);
            verify(requestWithPath, times(1)).setResolveInDfs(false);
    
            // Test with implementation
            testImplementation.setResolveInDfs(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            handle.close();
            verify(treeConnection, times(1)).release();
    
            // Second release -> usage 0 -> -1 triggers RuntimeCIFSException
            RuntimeCIFSException ex = assertThrows(RuntimeCIFSException.class, () -> handle.release());
            assertTrue(ex.getMessage().contains("below zero"));
            verify(treeConnection, times(1)).release(); // still only once
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

                assertNotNull(handle);
                // Verify that sendrecv was called with MsrpcSamrConnect4 and then MsrpcSamrConnect2
                verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrConnect4.class));
                verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrConnect2.class));
            }
        }
    
        @Test
        void testConstructor_OtherDcerpcException() throws DcerpcException, IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableTable.java

       * Object)} are even more convenient.
       *
       * <p>Builder instances can be reused - it is safe to call {@link #buildOrThrow} multiple times to
       * build multiple tables in series. Each table is a superset of the tables created before it.
       *
       * @since 11.0
       */
      @DoNotMock
      public static final class Builder<R, C, V> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbSessionTest.java

                assertDoesNotThrow(mockSession::close);
    
                verify(mockSession, times(1)).getConfig();
                verify(mockSession, times(1)).getContext();
                verify(mockSession, times(1)).unwrap(SmbSession.class);
                verify(mockSession, times(1)).close();
            }
    
            @Test
            @DisplayName("Should support partial mocking scenarios")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. schema/field_test.go

    		}
    	}
    	newValues["updated_at"] = time.Time{}
    	newValues["active"] = false
    	checkField(t, userSchema, reflectValue, newValues)
    
    	// test valuer and other type
    	age := myint(10)
    	var nilTime *time.Time
    	newValues2 := map[string]interface{}{
    		"name":       sql.NullString{String: "valuer_and_setter_3", Valid: true},
    		"id":         &sql.NullInt64{Int64: 3, Valid: true},
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sat Feb 19 09:02:53 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java

     */
    package org.apache.maven.api;
    
    import java.time.Clock;
    import java.time.Duration;
    import java.time.Instant;
    import java.time.ZoneId;
    import java.time.ZoneOffset;
    
    /**
     * A Clock implementation that combines monotonic timing with wall-clock time.
     * <p>
     * This class provides precise time measurements using {@link System#nanoTime()}
     * while maintaining wall-clock time information in UTC. The wall-clock time
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java

    package jcifs.dcerpc;
    
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.mockito.Mockito.doThrow;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.dcerpc.ndr.NdrBuffer;
    
    class DcerpcSecurityProviderTest {
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. cmd/os-instrumented.go

    }
    
    // time an os action.
    func (o *osMetrics) time(s osMetric) func() {
    	startTime := time.Now()
    	return func() {
    		duration := time.Since(startTime)
    
    		atomic.AddUint64(&o.operations[s], 1)
    		o.latency[s].add(duration)
    	}
    }
    
    // incTime will increment time on metric s with a specific duration.
    func (o *osMetrics) incTime(s osMetric, d time.Duration) {
    	atomic.AddUint64(&o.operations[s], 1)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
Back to top