- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 358 for RuntimeException (0.07 sec)
-
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
@Test @DisplayName("Should create SpnegoException with message and cause") void testWithMessageAndCause() { // Given String message = "SPNEGO handshake error"; RuntimeException cause = new RuntimeException("root cause"); // When SpnegoException ex = new SpnegoException(message, cause); // Then assertNotNull(ex); assertEquals(message, ex.getMessage());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java
assertThat(expected).hasCauseThat().isEqualTo(OTHER_THROWABLE); } public void testGetUnchecked_runtimeException() { RuntimeException expected = assertThrows(RuntimeException.class, () -> getUnchecked(RUNTIME_EXCEPTION_FUTURE)); assertEquals(RUNTIME_EXCEPTION, expected); } public void testGetUnchecked_error() { try {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 4.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java
assertThat(expected).hasCauseThat().isEqualTo(OTHER_THROWABLE); } public void testGetUnchecked_runtimeException() { RuntimeException expected = assertThrows(RuntimeException.class, () -> getUnchecked(RUNTIME_EXCEPTION_FUTURE)); assertEquals(RUNTIME_EXCEPTION, expected); } public void testGetUnchecked_error() { try {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 4.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/Platform.java
ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())); return (T) requireNonNull(in.readObject()); } catch (IOException | ClassNotFoundException e) { throw new RuntimeException(e); } } private Platform() {}
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 1.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
ScheduledThreadPoolExecutor delegate = new ScheduledThreadPoolExecutor(1); ListeningScheduledExecutorService service = listeningDecorator(delegate); RuntimeException ex = new RuntimeException(); ListenableFuture<?> future = service.schedule(new ThrowingRunnable(0, ex), 1, MILLISECONDS); assertExecutionException(future, ex); assertEquals(0, delegate.getQueue().size()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 00:25:21 UTC 2025 - 26.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/processor/impl/SitemapsResponseProcessorTest.java
when(sitemapsHelper.parse(any(InputStream.class))).thenThrow(new RuntimeException("Parse error")); // Execute and verify RuntimeException is thrown try { processor.process(responseData); fail("Should throw RuntimeException"); } catch (RuntimeException e) { // Expected exception assertEquals("Parse error", e.getMessage());
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java
} @Test @DisplayName("Should handle null message with root cause") void testConstructorWithNullMessageAndRootCause() { Exception rootCause = new RuntimeException("Root cause"); TransportException exception = new TransportException(null, rootCause); assertNotNull(exception); assertNull(exception.getMessage());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTaskWithKotlin.java
additionalJapicmpClasspath.from(resolveKotlinCompilerEmbeddable()); } catch (Exception e) { throw new RuntimeException("Got an error while patching JapicmpTask task", e); } } private Configuration resolveKotlinCompilerEmbeddable() { Project project = getProject();
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Dec 24 14:15:15 UTC 2025 - 2.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
static { try { DELEGATE_METHOD = ForwardingObject.class.getDeclaredMethod("delegate"); DELEGATE_METHOD.setAccessible(true); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new AssertionError(e); } } /** * Ensures that all interface methods of {@code forwarderClass} are forwarded to the {@linkRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 2.8K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
return !RuntimeException.class.isAssignableFrom(type); } @VisibleForTesting static void checkExceptionClassValidity(Class<? extends Exception> exceptionClass) { checkArgument( isCheckedException(exceptionClass), "Futures.getChecked exception type (%s) must not be a RuntimeException", exceptionClass); checkArgument(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 11.8K bytes - Viewed (0)