Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 231 for 5006 (0.01 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        for (int i = 0; i < 8; i++) {
          limiter.acquire(); // #1
        }
        stopwatch.sleepMillis(500); // #2: to repay for the last acquire
        stopwatch.sleepMillis(4000); // #3: becomes cold again
        for (int i = 0; i < 8; i++) {
          limiter.acquire(); // // #4
        }
        stopwatch.sleepMillis(500); // #5: to repay for the last acquire
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        for (int i = 0; i < 8; i++) {
          limiter.acquire(); // #1
        }
        stopwatch.sleepMillis(500); // #2: to repay for the last acquire
        stopwatch.sleepMillis(4000); // #3: becomes cold again
        for (int i = 0; i < 8; i++) {
          limiter.acquire(); // // #4
        }
        stopwatch.sleepMillis(500); // #5: to repay for the last acquire
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            entry.updateChild(childName, 1024L, 1000L, false, 0x20, 500L, 800L);
            assertTrue(entry.hasChanges());
    
            // Clear changes to test next scenario
            entry.markComplete();
            assertFalse(entry.hasChanges());
    
            // Update with same values - should not mark as changed (no actual change)
            entry.updateChild(childName, 1024L, 1000L, false, 0x20, 500L, 800L);
            assertFalse(entry.hasChanges());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java

            assertEquals(200, data.getHttpStatusCode());
    
            data.setHttpStatusCode(404);
            assertEquals(404, data.getHttpStatusCode());
    
            data.setHttpStatusCode(500);
            assertEquals(500, data.getHttpStatusCode());
        }
    
        public void test_charSetGetterSetter() {
            // Test charset getter/setter
            ResponseData data = new ResponseData();
    
            data.setCharSet("UTF-8");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

        assertThat(client.closed).isTrue()
      }
    
      @Test
      fun pingOnInterval() {
        client.initWebSocket(random, pingIntervalMillis = 500)
        taskFaker.advanceUntil(ns(500L))
        server.processNextFrame() // Ping.
        client.processNextFrame() // Pong.
        taskFaker.advanceUntil(ns(1000L))
        server.processNextFrame() // Ping.
        client.processNextFrame() // Pong.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

        val server = serverListener.assertOpen()
    
        // Initiate a close on the client, which will schedule a hard cancel in 500 ms.
        val closeAtNanos = System.nanoTime()
        webSocket.close(1000, "goodbye", 500L)
        serverListener.assertClosing(1000, "goodbye")
    
        // Confirm that the hard cancel occurred after 500 ms.
        clientListener.assertFailure()
        val elapsedUntilFailure = System.nanoTime() - closeAtNanos
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

                SMBUtil.writeInt4(500, buffer, 8);
                SMBUtil.writeInt4(0, buffer, 12);
                SMBUtil.writeInt4(0, buffer, 16);
    
                int bytesRead = response.readBytesWireFormat(buffer, 0);
    
                assertEquals(16, bytesRead);
                assertEquals(1000, response.getCount());
                assertEquals(500, response.getRemaining());
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

            assertEquals(1000, info.alloc);
            assertEquals(500, info.free);
            assertEquals(100, info.sectPerAlloc);
            assertEquals(512, info.bytesPerSect);
            assertEquals(1000L * 100 * 512, info.getCapacity(), "Capacity calculation should be correct");
            assertEquals(500L * 100 * 512, info.getFree(), "Free space calculation should be correct");
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                byte[] buffer = new byte[100];
                ByteBuffer bb = ByteBuffer.wrap(buffer).order(ByteOrder.LITTLE_ENDIAN);
                bb.putLong(1000L);
                bb.putLong(500L);
                bb.putLong(500L);
                bb.putInt(8);
                bb.putInt(512);
    
                // When
                int bytesConsumed = fileFsFullSizeInfo.decode(buffer, 0, buffer.length);
    
                // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskRunnerRealBackendTest.kt

      }
    
      @Test fun idleLatchAfterShutdown() {
        queue.schedule("task") {
          Thread.sleep(250)
          backend.shutdown()
          return@schedule -1L
        }
    
        assertThat(queue.idleLatch().await(500L, TimeUnit.MILLISECONDS)).isTrue()
        assertThat(queue.idleLatch().count).isEqualTo(0)
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top