- Sort Score
- Num 10 results
- Language All
Results 11 - 16 of 16 for throwException (0.09 seconds)
-
src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java
* @return Integer */ public Integer echo(final Integer arg) { return arg; } /** * */ public void throwException() { throw new IllegalStateException("hoge"); } } /** * */ public class MyBean2 { /** * */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Fri Jun 20 13:40:57 GMT 2025 - 13.9K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ReaderInputStream.java
} else { // (c) readMoreChars(); } } else if (result.isError()) { // Only reach here if a CharsetEncoder with non-REPLACE settings is used. result.throwException(); return 0; // Not called. } } } } /** Returns a new CharBuffer identical to buf, except twice the capacity. */ private static CharBuffer grow(CharBuffer buf) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 16:36:11 GMT 2025 - 9.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/CloserTest.java
try { try { throw thrownException; } catch (Throwable e) { throw closer.rethrow(thrownException, IOException.class); } finally { assertThat(thrownException.getSuppressed()).isEmpty(); closer.close(); } } catch (IOException caught) { assertThat(caught).isEqualTo(thrownException); } assertTrue(c1.isClosed());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CloserTest.java
try { try { throw thrownException; } catch (Throwable e) { throw closer.rethrow(thrownException, IOException.class); } finally { assertThat(thrownException.getSuppressed()).isEmpty(); closer.close(); } } catch (IOException caught) { assertThat(caught).isEqualTo(thrownException); } assertTrue(c1.isClosed());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.9K bytes - Click Count (0) -
src/test/java/jcifs/SmbSessionTest.java
doThrow(testException).when(mockSession).close(); Exception thrownException = assertThrows(Exception.class, mockSession::close, "close() should propagate exceptions"); assertEquals("Test close exception", thrownException.getMessage()); } } @Nested @DisplayName("Configuration Access Tests") class ConfigurationAccessTest {
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) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
when(mockDelegate.getResponseTimeout()).thenThrow(testException); // When & Then RuntimeException thrownException = assertThrows(RuntimeException.class, () -> { delegatingConfig.getResponseTimeout(); }); assertSame(testException, thrownException, "Should propagate exception from delegate"); verify(mockDelegate).getResponseTimeout(); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.7K bytes - Click Count (0)