Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 145 for Hockin (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                    }
                }
                assertTrue(hasNonZero, "Signature should be present at correct offset");
            }
    
            @Test
            @DisplayName("Should be thread-safe with optimized locking")
            void testSignThreadSafety() throws InterruptedException {
                int threadCount = 10;
                Thread[] threads = new Thread[threadCount];
                byte[][] dataArrays = new byte[threadCount][128];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbTreeTest.java

    import org.mockito.junit.jupiter.MockitoSettings;
    import org.mockito.quality.Strictness;
    
    /**
     * Tests for SmbTree interface.
     * This test class covers all methods of the SmbTree interface using Mockito for mocking.
     */
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class SmbTreeTest {
    
        @Mock
        private SmbTree smbTree;
    
        @Mock
        private SmbTree mockWrappedTree;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java

                assertEquals(USER_REALM, ticket.getUserRealm());
            }
        }
    
        // Note: Testing the code path where keys are null and retrieved from
        // KerberosCredentials requires mocking the constructor of KerberosCredentials,
        // which is not possible with standard Mockito. A tool like PowerMock would be needed.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

     * multiple routes to be attempted simultaneously.
     *
     * Events and sequences of events may be repeated for retries and follow-ups.
     *
     * All event methods must execute fast, without external locking, cannot throw exceptions, attempt
     * to mutate the event parameters, or be re-entrant back into the client. Any IO - writing to files
     * or network should be done asynchronously.
     */
    abstract class EventListener {
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt

        taskFaker.runTasks()
      }
    
      private fun connectHttp2(
        peer: MockHttp2Peer,
        realConnection: RealConnection,
        maxConcurrentStreams: Int,
      ): Http2Connection {
        // Write the mocking script.
        val settings1 = Settings()
        settings1[Settings.MAX_CONCURRENT_STREAMS] = maxConcurrentStreams
        peer.sendFrame().settings(settings1)
        peer.acceptFrame() // ACK
        peer.sendFrame().ping(false, 2, 0)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/eventbus/SubscriberRegistry.java

       * All registered subscribers, indexed by event type.
       *
       * <p>The {@link CopyOnWriteArraySet} values make it easy and relatively lightweight to get an
       * immutable snapshot of all current subscribers to an event without any locking.
       */
      private final ConcurrentMap<Class<?>, CopyOnWriteArraySet<Subscriber>> subscribers =
          Maps.newConcurrentMap();
    
      /** The event bus this registry belongs to. */
      @Weak private final EventBus bus;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacLogonInfoTest.java

            assertEquals("Malformed PAC", exception.getMessage());
        }
    
        @Test
        @DisplayName("Test getters return expected values using mocks")
        void testGetters() throws Exception {
            // Use mocking to test getters without complex PAC data creation
            PacLogonInfo logonInfo = mock(PacLogonInfo.class);
    
            // Setup mock responses
            when(logonInfo.getUserName()).thenReturn(TEST_USERNAME);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        boolean lockAcquired = tryLockUninterruptibly(lock, 500, MILLISECONDS);
    
        assertFalse(lockAcquired);
        assertAtLeastTimePassed(stopwatch, 500);
        assertNotInterrupted();
    
        // finish locking thread
        lockThread.interrupt();
      }
    
      public void testTryLockTimeoutNotExceeded() {
        Stopwatch stopwatch = Stopwatch.createStarted();
        Lock lock = new ReentrantLock();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  9. docs/bucket/versioning/README.md

    Versioning must be explicitly enabled on a bucket, versioning is not enabled by default. Object locking enabled buckets have versioning enabled automatically. Enabling and suspending versioning is done at the bucket level.
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 12K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

         *
         * <p>Note that because of concurrent set calls and uses of atomics, this bitCount is a (very)
         * close *estimate* of the actual number of bits set. It's not possible to do better than an
         * estimate without locking. Note that the number, if not exactly accurate, is *always*
         * underestimating, never overestimating.
         */
        long bitCount() {
          return bitCount.sum();
        }
    
        LockFreeBitArray copy() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top