- Sort Score
- Num 10 results
- Language All
Results 351 - 360 of 492 for RuntimeException (0.26 seconds)
-
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
} @Test public void test_setError_withException_noRequest() { // Test setError with exception when no HTTP request is available try { WebApiUtil.setError(500, new RuntimeException("Test error")); } catch (Exception e) { fail("setError should handle missing request gracefully: " + e.getMessage()); } } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java
method.setAccessible(true); return (ClassificationMeta) method.invoke(obj, param); } catch (Exception e) { throw new RuntimeException(e); } }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 7.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/UpdateLabelJobTest.java
java.util.function.BiFunction<org.opensearch.action.update.UpdateRequestBuilder, org.opensearch.search.SearchHit, org.opensearch.action.update.UpdateRequestBuilder> processor) { throw new RuntimeException("Test exception"); } }; ComponentUtil.register(exceptionClient, "searchEngineClient"); String result = updateLabelJob.execute(); assertNotNull(result);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.6K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/benchmark/script/ScriptScoreBenchmark.java
} return values.nextValue(); } catch (IOException e) { throw new RuntimeException(e); } } @Override public void setDocument(int docid) { this.docId = docid;Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Sep 20 13:45:50 GMT 2021 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
// Verify that the method was called verify(mockResponse, times(1)).reset(); } @Test void testGetException() { Exception testException = new RuntimeException("Test Exception"); when(mockResponse.getException()).thenReturn(testException); assertEquals(testException, mockResponse.getException()); // Test null exceptionCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/JobNotFoundExceptionTest.java
JobNotFoundException exception = new JobNotFoundException("test"); assertTrue(exception instanceof FessSystemException); assertTrue(exception instanceof RuntimeException); assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } @Test public void test_serialization() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 9.2K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/info/BuildParams.java
// accessibility controls here. f.setAccessible(true); f.set(null, null); } catch (IllegalAccessException e) { throw new RuntimeException(e); } }); } public void setRuntimeJavaHome(File runtimeJavaHome) { BuildParams.runtimeJavaHome = requireNonNull(runtimeJavaHome); }Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 22 07:24:59 GMT 2021 - 7.7K bytes - Click Count (0) -
src/test/java/jcifs/SmbTreeTest.java
* Verifies behavior when close throws an exception. */ @Test void testClose_throwsException() { doThrow(new RuntimeException("Failed to close")).when(smbTree).close(); assertThrows(RuntimeException.class, () -> smbTree.close(), "Should propagate exception when close fails"); } /** * Test for AutoCloseable functionality.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java
try { if (shouldWait.get()) { firstBarrier.await(); secondBarrier.await(); } } catch (Exception e) { throw new RuntimeException(e); } }; TestCustomScheduler scheduler = new TestCustomScheduler(); Cancellable future = scheduler.schedule(null, newScheduledThreadPool(10), task); firstBarrier.await();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 22.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java
try { if (shouldWait.get()) { firstBarrier.await(); secondBarrier.await(); } } catch (Exception e) { throw new RuntimeException(e); } }; TestCustomScheduler scheduler = new TestCustomScheduler(); Cancellable future = scheduler.schedule(null, newScheduledThreadPool(10), task); firstBarrier.await();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 22.8K bytes - Click Count (0)