- Sort Score
- Num 10 results
- Language All
Results 731 - 740 of 2,057 for Kong (0.06 seconds)
-
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
} @ParameterizedTest @DisplayName("Should handle various offsets") @ValueSource(longs = { 0L, 1L, 512L, 1024L, 4096L, 1048576L, Long.MAX_VALUE }) void testVariousOffsets(long offset) { assertDoesNotThrow(() -> request.setOffset(offset)); } } @Nested @DisplayName("Size Calculation Tests") class SizeCalculationTests {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/StatsTesting.java
static final double LONG_MANY_VALUES_MIN = -44444444.0; // Longs which will overflow if summed (using long arithmetic): static final long[] LARGE_LONG_VALUES = {Long.MAX_VALUE, Long.MAX_VALUE / 2}; static final double LARGE_LONG_VALUES_MEAN = BigInteger.valueOf(Long.MAX_VALUE) .multiply(BigInteger.valueOf(3L)) .divide(BigInteger.valueOf(4L)) .doubleValue();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 23.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/Queues.java
public static <E> int drainUninterruptibly( BlockingQueue<E> q, Collection<? super E> buffer, int numElements, long timeout, TimeUnit unit) { Preconditions.checkNotNull(buffer); long deadline = System.nanoTime() + unit.toNanos(timeout); int added = 0; boolean interrupted = false; try { while (added < numElements) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Nov 04 17:24:58 GMT 2025 - 18K bytes - Click Count (0) -
src/test/java/jcifs/util/InputValidatorTest.java
@ParameterizedTest @DisplayName("Test range validation") @CsvSource({ "50, 0, 100, true", "0, 0, 100, true", "100, 0, 100, true", "-1, 0, 100, false", "101, 0, 100, false" }) void testRangeValidation(long value, long min, long max, boolean valid) { if (valid) { assertDoesNotThrow(() -> InputValidator.validateRange(value, min, max, "test")); } else {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11.9K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/UrlFilterTest.java
} /** * Test very long URL handling */ public void test_veryLongUrl() { String sessionId = "test-session-020"; urlFilter.init(sessionId); // Create a very long URL StringBuilder longUrl = new StringBuilder("https://example.com/"); for (int i = 0; i < 1000; i++) { longUrl.append("very/long/path/segment/"); }Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Wed Sep 03 14:42:53 GMT 2025 - 19K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
ChannelFailover.FailoverState state = new ChannelFailover.FailoverState("test-channel"); long firstRetry = state.getNextRetryTime(); state.incrementRetry(); long secondRetry = state.getNextRetryTime(); state.incrementRetry(); long thirdRetry = state.getNextRetryTime(); // Should have exponential backoff assertTrue(secondRetry > firstRetry);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/AbstractCacheTest.java
StatsCounter counter = new SimpleStatsCounter(); counter.recordLoadSuccess(Long.MAX_VALUE); counter.recordLoadSuccess(1); CacheStats stats = counter.snapshot(); assertThat(stats.totalLoadTime()).isEqualTo(Long.MAX_VALUE); } public void testSimpleStatsIncrementBy() { long totalLoadTime = 0; SimpleStatsCounter counter1 = new SimpleStatsCounter();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 6.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java
* }</pre> * * @see System#nanoTime() * @see Clock */ public class MonotonicClock extends Clock { private static final MonotonicClock CLOCK = new MonotonicClock(); private final long startNanos; private final Instant startInstant; /** * Private constructor to enforce singleton pattern. * Initializes the clock with the current system time and nanoTime. */Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jan 15 06:28:29 GMT 2025 - 5.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
@Test @DisplayName("Should handle different previous session IDs") void testDifferentPreviousSessionIds() throws Exception { // Given long[] sessionIds = { 0L, 1L, Long.MAX_VALUE, Long.MIN_VALUE, 0xFFFFFFFFFFFFFFFFL }; for (long sessionId : sessionIds) { Smb2SessionSetupRequest req = new Smb2SessionSetupRequest(mockContext, TEST_SECURITY_MODE, TEST_CAPABILITIES, sessionId, null);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/AutobahnTester.kt
runTest(number, count) } updateReports() } finally { client.dispatcher.executorService.shutdown() } } private fun runTest( number: Long, count: Long, ) { val latch = CountDownLatch(1) val startNanos = AtomicLong() newWebSocket( "/runCase?case=$number&agent=okhttp", object : WebSocketListener() { override fun onOpen(
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.6K bytes - Click Count (0)