- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 231 for AssertionError (0.08 sec)
-
android/guava-tests/test/com/google/common/io/CharSourceTest.java
try { in.copyTo(out); fail(); } catch (IOException expected) { return expected.getSuppressed().length; } throw new AssertionError(); // can't happen } private static CharSource newNormalCharSource() { return CharSource.wrap("ABC"); } private static CharSink newNormalCharSink() { return new CharSink() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 11.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java
@Override protected void startUp() { startUpCalled = true; throw new UnsupportedOperationException("kaboom!"); } @Override protected void run() { throw new AssertionError("run() should not be called"); } @Override protected Executor executor() { return exceptionCatchingExecutor; } } public void testServiceThrowOnRun() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 12.7K bytes - Viewed (0) -
guava/src/com/google/common/base/Stopwatch.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 9.3K bytes - Viewed (0) -
okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.5K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt
while (true) { val event = takeEvent() if (eventClass.isInstance(event)) { return eventClass.cast(event) } } } catch (e: NoSuchElementException) { throw AssertionError("full event sequence: $fullEventSequence", e) } } inline fun <reified T : CallEvent> removeUpToEvent(): T = removeUpToEvent(T::class.java) /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.1K bytes - Viewed (0) -
okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
try { in.copyTo(out); fail(); } catch (IOException expected) { return expected.getSuppressed().length; } throw new AssertionError(); // can't happen } private static CharSource newNormalCharSource() { return CharSource.wrap("ABC"); } private static CharSink newNormalCharSink() { return new CharSink() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 11.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CloserTest.java
public void close() throws IOException { closed = true; if (throwOnClose != null) { throwIfInstanceOf(throwOnClose, IOException.class); throwIfUnchecked(throwOnClose); throw new AssertionError(throwOnClose); } } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 11.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java
@Override protected void startUp() { startUpCalled = true; throw new UnsupportedOperationException("kaboom!"); } @Override protected void run() { throw new AssertionError("run() should not be called"); } @Override protected Executor executor() { return exceptionCatchingExecutor; } } public void testServiceThrowOnRun() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 12.7K bytes - Viewed (0)