Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 351 - 360 of 492 for RuntimeException (0.07 seconds)

  1. 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());
            }
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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 exception
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to Top