- Sort Score
- Num 10 results
- Language All
Results 361 - 370 of 492 for RuntimeException (0.08 seconds)
-
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
} } static class ConstructorThrows { public ConstructorThrows() { throw new RuntimeException(); } } static class FactoryMethodThrows { private FactoryMethodThrows() {} public static FactoryMethodThrows create() { throw new RuntimeException(); } } static class NotInstantiable { private NotInstantiable() {} }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 36.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
throws InterruptedException { int count = 10; AtomicInteger callCount = new AtomicInteger(); CountDownLatch startSignal = new CountDownLatch(count + 1); RuntimeException e = new RuntimeException(); LoadingCache<String, String> cache = builder.build( new CacheLoader<String, String>() { @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 91K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/query/QueryCommandTest.java
propField.setAccessible(true); propField.set(this, new org.dbflute.helper.jprop.ObjectiveProperties("test")); } catch (Exception e) { throw new RuntimeException("Failed to initialize prop field", e); } } @Override public String getIndexFieldTitle() { return "title"; }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java
} // Mock class for testing exception scenarios private static class MockMultiThreadedHttpConnectionManager { public static void shutdownAll() { throw new RuntimeException("Simulated exception during shutdown"); } } // Test to verify the logger field is properly initialized @Test public void test_loggerFieldInitialization() throws Exception {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 8.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/JobProcessTest.java
Process mockProcess = createMockProcess("exception test"); Consumer<String> faultyCallback = line -> { throw new RuntimeException("Callback exception"); }; JobProcess jobProcess = new JobProcess(mockProcess, 10, faultyCallback); InputStreamThread thread = jobProcess.getInputStreamThread(); thread.start();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 8.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java
try { return File.createTempFile(prefix, suffix); } catch (Exception e) { throw new RuntimeException(e); } } }; ComponentUtil.register(mockSystemHelper, "systemHelper"); // Register mock FessConfigCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.2K bytes - Click Count (0) -
src/test/java/jcifs/SmbSessionTest.java
void shouldHandleExceptionsDuringResourceCleanup() throws Exception { SmbSession mockSession = mock(SmbSession.class); doThrow(new RuntimeException("Cleanup failed")).when(mockSession).close(); assertThrows(RuntimeException.class, () -> { try (SmbSession session = mockSession) { // Resource usage simulation session.getConfig();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractIterator.java
* result. * * @return the next element if there was one. If {@code endOfData} was called during execution, * the return value will be ignored. * @throws RuntimeException if any unrecoverable error happens. This exception will propagate * outward to the {@code hasNext()}, {@code next()}, or {@code peek()} invocation that invokedCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 6.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java
|| message instanceof Smb2QueryDirectoryRequest; } /** * Exception thrown when no healthy channels are available */ public static class NoAvailableChannelException extends RuntimeException { private static final long serialVersionUID = 1L; /** * Create exception * * @param message error message */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 8.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
when(cifsContext.getConfig()).thenReturn(configuration); when(configuration.getOemEncoding()).thenReturn("X-INVALID-ENCODING-NOT-EXISTENT"); // Act + Assert RuntimeException ex = assertThrows(RuntimeException.class, () -> NtlmUtil.getPreNTLMResponse(cifsContext, "password", new byte[8])); assertTrue(ex.getMessage().contains("Unsupported OEM encoding")); verify(cifsContext, atLeastOnce()).getConfig();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12K bytes - Click Count (1)