- Sort Score
- Num 10 results
- Language All
Results 651 - 660 of 1,069 for match1 (0.04 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java
checkNotNull(unit); Thread interruptee = Thread.currentThread(); new Thread( () -> { try { unit.sleep(time); } catch (InterruptedException wontHappen) { throw new AssertionError(wontHappen); } interruptee.interrupt(); }) .start(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 15:38:30 GMT 2026 - 3.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MapMakerTest.java
public void xtestInitialCapacity_setTwice() { MapMaker maker = new MapMaker().initialCapacity(16); try { // even to the same value is not allowed maker.initialCapacity(16); fail(); } catch (IllegalStateException expected) { } } public void testReturnsPlainConcurrentHashMapWhenPossible() { Map<?, ?> map = new MapMaker().initialCapacity(5).makeMap();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.8K bytes - Click Count (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
.eventListenerFactory(loggingEventListenerFactory) .build() try { client.newCall(request().build()).execute() fail<Any>() } catch (expected: UnknownHostException) { } logRecorder .assertLogMatch(Regex("""callStart: Request\{method=GET, url=$url\}""")) .assertLogMatch(Regex("""proxySelectStart: $url"""))
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 10.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularContiguousSet.java
if (object == null) { return false; } try { @SuppressWarnings("unchecked") // The worst case is usually CCE, which we catch. C c = (C) object; return range.contains(c); } catch (ClassCastException e) { return false; } } @Override public boolean containsAll(Collection<?> targets) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 8.3K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ExecutionList.java
private static void executeListener(Runnable runnable, Executor executor) { try { executor.execute(runnable); } catch (Exception e) { // sneaky checked exception // Log it and keep going -- bad runnable and/or executor. Don't punish the other runnables if // we're given a bad one. We only catch Exception because we want Errors to propagate up. log.get() .log( Level.SEVERE,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 10 11:51:21 GMT 2026 - 6.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java
.isNotEqualTo(thread3.getName().substring(0, thread.getName().lastIndexOf('-'))); } private static void checkThreadPoolName(Thread thread, int threadId) { assertThat(thread.getName()).matches("^pool-\\d+-thread-" + threadId + "$"); } public void testNameFormatWithPercentS_custom() { String format = "super-duper-thread-%s"; ThreadFactory factory = builder.setNameFormat(format).build();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.8K bytes - Click Count (0) -
.teamcity/src/main/kotlin/common/CommonExtensions.kt
contains("teamcity.agent.jvm.os.arch", arch.nameOnMac) } else { contains("teamcity.agent.jvm.os.arch", arch.nameOnLinuxWindows) } } fun Requirements.requiresEc2Agent() { matches("teamcity.agent.name", "^(ec|EC)2-.*$") } fun Requirements.requiresNotEc2Agent() { doesNotContain("teamcity.agent.name", "ec2") // US region agents have name "EC2-XXX"
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Mar 13 05:03:56 GMT 2026 - 14.8K bytes - Click Count (0) -
android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt
@Test fun testRequestUsesPlayProvider() { assumeNetwork() try { try { ProviderInstaller.installIfNeeded(InstrumentationRegistry.getInstrumentation().targetContext) } catch (gpsnae: GooglePlayServicesNotAvailableException) { throw TestAbortedException("Google Play Services not available", gpsnae) } val request = Request.Builder().url("https://facebook.com/robots.txt").build()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 29.9K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedBytes.java
? unsafeComparator : lexicographicalComparatorJavaImpl(); } catch (Throwable t) { // ensure we really catch *everything* /* * Now that UnsafeComparator is implemented to initialize successfully even when we know we * can't use it, this `catch` block might now be necessary only: *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 21K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
} @Test public void testMemoryBasedCacheConstructorWithNull() { try { new ContentCache((byte[]) null); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { assertTrue(e.getMessage().contains("data must not be null")); } } @Test public void testMemoryBasedCacheDefensiveCopy() throws IOException {Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 15.9K bytes - Click Count (0)