- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 187 for AssertionError (0.08 sec)
-
android/guava/src/com/google/common/base/Joiner.java
@CanIgnoreReturnValue public final StringBuilder appendTo(StringBuilder builder, Iterator<?> parts) { try { appendTo((Appendable) builder, parts); } catch (IOException impossible) { throw new AssertionError(impossible); } return builder; } /** * Appends the string representation of each of {@code parts}, using the previously configured
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 19.3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Throwables.java
* failure = t; * } * } * if (failure != null) { * throwIfInstanceOf(failure, BarException.class); * throwIfUnchecked(failure); * throw new AssertionError(failure); * } * </pre> * * @since 20.0 */ @GwtIncompatible // Class.cast, Class.isInstance public static <X extends Throwable> void throwIfInstanceOf(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
@Test fun webSocketAndNetworkInterceptors() { client = client .newBuilder() .addNetworkInterceptor( Interceptor { chain: Interceptor.Chain? -> throw AssertionError() // Network interceptors don't execute. }, ).build() webServer.enqueue( MockResponse .Builder() .webSocketUpgrade(serverListener) .build(), )
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 35.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FilteredEntryMultimap.java
} @Override Collection<V> createValues() { return new FilteredMultimapValues<>(this); } @Override Iterator<Entry<K, V>> entryIterator() { throw new AssertionError("should never be called"); } @Override Map<K, Collection<V>> createAsMap() { return new AsMap(); } @Override Set<K> createKeySet() { return asMap().keySet(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 12.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt
try { return newSSLContext() .apply { init(null, arrayOf<TrustManager>(trustManager), null) }.socketFactory } catch (e: GeneralSecurityException) { throw AssertionError("No System TLS: $e", e) // The system has no TLS. Just give up. } } override fun toString(): String = javaClass.simpleName companion object { @Volatile private var platform = findPlatform()Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
// Helper to build a minimal smb URL private static URL smbUrl(String spec) { try { return new URL(null, spec, new Handler()); } catch (MalformedURLException e) { throw new AssertionError("Failed to create SMB URL: " + spec, e); } } // Utility to build a minimal locator for connect tests private static SmbResourceLocatorImpl newLocator(CIFSContext ctx) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt
} private fun <T> finished( calls: Deque<T>, call: T, ) { val idleCallback: Runnable? synchronized(this) { if (!calls.remove(call)) throw AssertionError("Call wasn't in-flight!") idleCallback = this.idleCallback } val isRunning = promoteAndExecute() if (!isRunning && idleCallback != null) { idleCallback.run() } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 8.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt
override fun onResponse( call: Call, response: Response, ) { try { Thread.sleep(500) } catch (e: InterruptedException) { throw AssertionError() } assertFailsWith<IOException> { response.body.source().readUtf8() }.also { expected -> exceptionRef.set(expected) latch.countDown()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 10.6K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/CharEscaper.java
*/ private static char[] growBuffer(char[] dest, int index, int size) { if (size < 0) { // overflow - should be OutOfMemoryError but GWT/j2cl don't support it throw new AssertionError("Cannot increase internal buffer any further"); } char[] copy = new char[size]; if (index > 0) { System.arraycopy(dest, 0, copy, 0, index); } return copy; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 6.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java
} catch (InvocationTargetException e) { if (exception != e.getCause()) { throw new RuntimeException(e); } } catch (IllegalAccessException e) { throw new AssertionError(e); } } private static <T> void testEquals( Class<T> interfaceType, Function<? super T, ? extends T> wrapperFunction) { FreshValueGenerator generator = new FreshValueGenerator();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 9.1K bytes - Viewed (0)