- Sort Score
- Num 10 results
- Language All
Results 931 - 940 of 1,409 for was (0.05 seconds)
-
android/guava-tests/test/com/google/common/math/IntMathTest.java
} } } // Relies on the correctness of isPowerOfTwo(int). public void testLog2Exact() { for (int x : POSITIVE_INTEGER_CANDIDATES) { // We only expect an exception if x was not a power of 2. boolean isPowerOf2 = IntMath.isPowerOfTwo(x); try { assertEquals(x, 1 << IntMath.log2(x, UNNECESSARY)); assertTrue(isPowerOf2); } catch (ArithmeticException e) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 24.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheBuilderTest.java
// other operations, the cache and the removal queue won't change from this point on. // Verify that each received removal notification was valid for (RemovalNotification<String, String> notification : removalListener) { assertWithMessage("Invalid removal notification") .that(notification.getValue()) .isEqualTo(notification.getKey());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 25.6K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
AfterEnqueuedTasks, /** Resumes after all other tasks, including tasks enqueued while yielding. */ AfterOtherTasks, } /** Returns the task that was started, or null if there were no tasks to start. */ private fun startNextTask(): SerialTask? { taskRunner.assertLockHeld() val index = serialTaskQueue.indexOfFirst { it.isReady() }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed May 28 23:28:25 GMT 2025 - 11.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/LanguageHelperTest.java
languageHelper.updateDocument(doc); assertEquals("ja", doc.get("lang")); assertEquals("タイトル", doc.get("title_ja")); assertNull(doc.get("content_ja")); // content field was not present } @Test public void test_getSupportedLanguage_withWhitespace() { // Test that whitespace is not trimmed (as per implementation)Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 13K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheLoader.java
// Cache implementors may want to catch it but should not need to be able to throw it. UnsupportedLoadingOperationException() {} } /** * Thrown to indicate that an invalid response was returned from a call to {@link CacheLoader}. * * @since 11.0 */ public static final class InvalidCacheLoadException extends RuntimeException { public InvalidCacheLoadException(String message) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 9.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
DirectoryCacheScope.IMMEDIATE_CHILDREN); assertNotNull(leaseKey); // Step 2: Verify cache entry was created DirectoryCacheEntry cacheEntry = directoryLeaseManager.getCacheEntry(directoryPath); assertNotNull(cacheEntry); assertEquals(directoryPath, cacheEntry.getDirectoryPath());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 14.2K bytes - Click Count (0) -
compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java
SnapshotVersion sv1 = addSnapshotVersion(target.getVersioning(), after, artifact); addSnapshotVersion(source.getVersioning(), before, artifact); // nothing should be updated, as the target was already updated at a later date than source assertFalse(target.merge(source)); assertEquals(1, target.getVersioning().getSnapshotVersions().size());
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 13.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterator)); assertThat(expected).hasMessageThat().isEqualTo("expected one element but was: <one, two>"); } public void testGetOnlyElement_noDefault_fiveElements() { Iterator<String> iterator = asList("one", "two", "three", "four", "five").iterator(); IllegalArgumentException expected =Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
tests/association_generics_test.go
} // Only association operations were executed; no row update is expected if rows != 0 { t.Fatalf("expected 0 rows affected for association-only update, got %d", rows) } // Verify the association was created using real database query AssertAssociationCount(t, &user, "Pets", 1, "after Set Update with association") } // Test Set + Update with Association OpCreate operation using real databaseCreated: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Sep 12 05:42:26 GMT 2025 - 37.9K bytes - Click Count (0) -
docs/contribute/concurrency.md
Blocking APIs are convenient because you get top-to-bottom procedural code without indirection. Network calls work like regular method calls: ask for data and it is returned. If the request fails, you get a stacktrace right where the call was made. Blocking APIs may be inefficient because you hold a thread idle while waiting on the network. Threads are expensive because they have both a memory overhead and a context-switching overhead. #### Framed protocols
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 06 16:35:36 GMT 2022 - 7K bytes - Click Count (0)