- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 2,205 for exceptions (0.05 sec)
-
android/guava-tests/benchmark/com/google/common/util/concurrent/FuturesGetCheckedBenchmark.java
@Param Result result; @Param ExceptionType exceptionType; /** * The number of other exception types in the cache of known-good exceptions and the number of * other {@code ClassValue} entries for the exception type to be tested. This lets us evaluate * whether our solution scales to use with multiple exception types and to whether it is affected
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 6.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ListenableFuture.java
* this method is guaranteed to be called once the computation is complete. * * <p>Exceptions thrown by a listener will be propagated up to the executor. Any exception thrown * during {@code Executor.execute} (e.g., a {@code RejectedExecutionException} or an exception * thrown by {@linkplain MoreExecutors#directExecutor direct execution}) will be caught and * logged. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
if (arg == null) { throw new ParameterNotInstantiableException(param); } return arg; } private static <X extends Throwable> void throwFirst(List<X> exceptions) throws X { if (!exceptions.isEmpty()) { throw exceptions.get(0); } } /** Factories with the least number of parameters are listed first. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/LogStreamTest.java
resetLogStreamInstance(); } @AfterEach void tearDown() throws Exception { // Restore original state System.setErr(originalErr); LogStream.level = originalLevel; // Reset instance using reflection resetLogStreamInstance(); } private void resetLogStreamInstance() throws Exception { // Use reflection to reset the static instance field to null
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketWriterTest.kt
class WebSocketWriterTest { private val data = Buffer() private val random = Random(0) /** * Check all data as verified inside of the test. We do this in an AfterEachCallback so that * exceptions thrown from the test do not cause this check to fail. */ @RegisterExtension val noDataLeftBehind = AfterEachCallback { context: ExtensionContext ->
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 9.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java
throw new IOException("Test exception"); } }; try { SearchEngineUtil.getXContentString(xContent, XContentType.JSON); fail("Should throw IORuntimeException"); } catch (IORuntimeException e) { assertTrue(e.getCause() instanceof IOException); assertEquals("Test exception", e.getCause().getMessage()); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 13.6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
import org.junit.jupiter.api.extension.BeforeEachCallback import org.junit.jupiter.api.extension.ExtensionContext /** * Apply this rule to all tests. It adds additional checks for leaked resources and uncaught * exceptions. * * Use [newClient] as a factory for a OkHttpClient instances. These instances are specifically * configured for testing. */ class OkHttpClientTestRule : BeforeEachCallback, AfterEachCallback {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 10.5K bytes - Viewed (0) -
guava/src/com/google/common/escape/CharEscaper.java
* to perform more efficiently. * * <p>An escaper is expected to be able to deal with any {@code char} value, so this method should * not throw any exceptions. * * @param c the character to escape if necessary * @return the replacement characters, or {@code null} if no escaping was needed */ protected abstract char @Nullable [] escape(char c); /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 6.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
assertSame(session, result); verify(transport).getSmbSession(eq(ctx), eq(host), eq(domain)); } // SMB2 detection: true/false and exception path @Test @DisplayName("isSMB2 returns true/false and can throw") void isSMB2_variants() throws Exception { when(transport.isSMB2()).thenReturn(true, false); assertTrue(transport.isSMB2()); assertFalse(transport.isSMB2());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java
} @Test void testChannelSelection() { try { channelManager.selectChannel(mockMessage); fail("Should throw exception when no channels available"); } catch (Exception e) { // Expected - no channels available assertTrue(e instanceof ChannelLoadBalancer.NoAvailableChannelException); } } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.6K bytes - Viewed (0)