- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 293 for FOO (0.07 sec)
-
android/guava-testlib/src/com/google/common/testing/GcFinalization.java
* leaks, by ensuring that objects are no longer strongly referenced: * * {@snippet : * // Helper function keeps victim stack-unreachable. * private WeakReference<Foo> fooWeakRef() { * Foo x = ....; * WeakReference<Foo> weakRef = new WeakReference<>(x); * // ... use x ... * x = null; // Hint to the JIT that x is stack-unreachable * return weakRef; * } * public void testFooLeak() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 11.5K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java
return arithmetic.add(a, b); } @Override public String toString() { return arithmetic.toString(); } } private interface ParameterTypesDifferent { void foo( String s, Runnable r, Number n, Iterable<?> it, boolean b, Equivalence<String> eq, Exception e, InputStream in, Comparable<?> c,
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 15.7K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
try { WeakReference<Object> ref = new WeakReference<>(new Foo()); RuntimeException expected = assertThrows(RuntimeException.class, () -> GcFinalization.awaitClear(ref)); assertWrapsInterruptedException(expected); } finally { interruptenator.shutdown(); Thread.interrupted(); } } private static final class Foo {}Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 17:02:07 UTC 2025 - 7.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java
@Override protected String serviceName() { return "Foo"; } }; TimeoutException e = assertThrows( TimeoutException.class, () -> service.startAsync().awaitRunning(1, MILLISECONDS)); assertThat(e) .hasMessageThat() .isEqualTo("Timed out waiting for Foo [STARTING] to reach the RUNNING state."); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt
val requestWithoutCache = Request.Builder().url("http://localhost/api").build() val builtRequestWithoutCache = requestWithoutCache.newBuilder().url("http://localhost/api/foo").build() assertThat(builtRequestWithoutCache.url).isEqualTo( "http://localhost/api/foo".toHttpUrl(), ) val requestWithCache = Request .Builder() .url("http://localhost/api") .build() // cache url object
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 24 11:36:14 UTC 2025 - 24.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
assertEquals("", Files.getFileExtension("blah.")); assertEquals("", Files.getFileExtension(".blah.")); assertEquals("", Files.getFileExtension("/foo.bar/blah")); assertEquals("", Files.getFileExtension("/foo/.bar/blah")); } public void testGetNameWithoutExtension() { assertEquals("", Files.getNameWithoutExtension(".txt"));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 22.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
public void testIdentity_same() { Function<@Nullable String, @Nullable String> identity = Functions.identity(); assertThat(identity.apply(null)).isNull(); assertSame("foo", identity.apply("foo")); } public void testIdentity_notSame() { Function<Long, Long> identity = Functions.identity(); assertNotSame(new Long(135135L), identity.apply(new Long(135135L))); } @J2ktIncompatible
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 16K bytes - Viewed (0) -
src/test/java/jcifs/smb/ShareEnumIteratorTest.java
ShareEnumIterator it = new ShareEnumIterator(parent, entries.iterator(), null); // hasNext/next sequence over two elements assertTrue(it.hasNext(), "Expected first element available"); SmbResource r1 = it.next(); assertNotNull(r1);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RangeMap.java
* * <p>For example, if {@code rangeMap} had the entries {@code [1, 5] => "foo", (6, 8) => "bar", * (10, ∞) => "baz"} then {@code rangeMap.subRangeMap(Range.open(3, 12))} would return a range map * with the entries {@code (3, 5] => "foo", (6, 8) => "bar", (10, 12) => "baz"}. * * <p>The returned range map supports all optional operations that this range map supports, exceptRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ArrayTableColumnMapTest.java
public ArrayTableColumnMapTest() { super(true, false, false, false); } @Override Table<Integer, String, Character> makeTable() { return ArrayTable.create(asList(1, 2, 3), asList("foo", "bar", "dog")); } @Override protected Map<String, Map<Integer, Character>> makeEmptyMap() { throw new UnsupportedOperationException(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.3K bytes - Viewed (0)