Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 637 for sock (0.01 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

      /** The timestamp of the last taken event, used to measure elapsed time between events. */
      private var lastTimestampNs: Long? = null
    
      /** Confirm that the thread does not hold a lock on `lock` during the callback. */
      fun forbidLock(lock: Any) {
        forbiddenLocks.add(lock)
      }
    
      /**
       * Removes recorded events up to (and including) an event is found whose class equals [eventClass]
       * and returns it.
       */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ForwardingLock.java

    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.locks.Condition;
    import java.util.concurrent.locks.Lock;
    
    /** Forwarding wrapper around a {@code Lock}. */
    @J2ktIncompatible
    @GwtIncompatible
    abstract class ForwardingLock implements Lock {
      abstract Lock delegate();
    
      @Override
      public void lock() {
        delegate().lock();
      }
    
      @Override
      public void lockInterruptibly() throws InterruptedException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

    /**
     * Tests for SmbWatchHandleImpl focusing on behavior and interactions.
     */
    @ExtendWith(MockitoExtension.class)
    class SmbWatchHandleImplTest {
    
        @Mock
        SmbFileHandleImpl handle;
    
        @Mock
        SmbTreeHandleImpl tree;
    
        // Prepare SMB2 flow with a given response
        private void setupSmb2(NotifyResponse resp, byte[] fileId) throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

        /**
         * Helper method to create a mock context with specific LanMan compatibility level
         */
        private CIFSContext createMockContextWithLanManCompat(int level) {
            CIFSContext mockCtx = mock(CIFSContext.class);
            Configuration mockConfig = mock(Configuration.class);
            NameServiceClient mockNameServiceClient = mock(NameServiceClient.class);
            NetbiosAddress mockHost = mock(NetbiosAddress.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/transport/RequestTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    class RequestTest {
    
        @Mock
        private Request mockRequest;
    
        @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

      }
    
      /**
       * Invokes {@code lock.}{@link Lock#tryLock(long, TimeUnit) tryLock(timeout, unit)}
       * uninterruptibly.
       *
       * @since 30.0
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public static boolean tryLockUninterruptibly(Lock lock, long timeout, TimeUnit unit) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbTreeTest.java

    import static org.mockito.Mockito.doThrow;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/http/HandlerTest.java

            // Create mock HTTP handler
            URLStreamHandler httpHandler = new URLStreamHandler() {
                @Override
                protected URLConnection openConnection(URL u) throws IOException {
                    return mock(HttpURLConnection.class);
                }
            };
    
            // Create mock HTTPS handler
            URLStreamHandler httpsHandler = new URLStreamHandler() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java

            // Mock Pac construction to bypass complex validation
            try (MockedConstruction<Pac> pacMock = Mockito.mockConstruction(Pac.class, (mock, context) -> {
                // Setup mock behavior
                PacLogonInfo mockLogonInfo = Mockito.mock(PacLogonInfo.class);
                PacSignature mockServerSig = Mockito.mock(PacSignature.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/UniAddressTest.java

        @Test
        void getAddressReturnsOriginalObject() {
            InetAddress dummy = mock(InetAddress.class);
            UniAddress ua = new UniAddress(dummy);
            assertSame(dummy, ua.getAddress(), "getAddress should return the wrapped address");
        }
    
        @Test
        void getHostNameDelegatesToWrappedInetAddress() {
            InetAddress dummy = mock(InetAddress.class);
            when(dummy.getHostName()).thenReturn("host.example.com");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top