- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 129 for caught (0.05 seconds)
-
guava-tests/test/com/google/common/io/CloserTest.java
try { try { throw exception; } catch (Throwable e) { throw closer.rethrow(e); } finally { closer.close(); } } catch (Throwable caught) { assertThat(caught).isEqualTo(exception); } assertTrue(c1.isClosed()); assertTrue(c2.isClosed()); assertTrue(suppressor.suppressions.isEmpty()); }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) -
android/guava-tests/test/com/google/common/io/CloserTest.java
try { try { throw exception; } catch (Throwable e) { throw closer.rethrow(e); } finally { closer.close(); } } catch (Throwable caught) { assertThat(caught).isEqualTo(exception); } assertTrue(c1.isClosed()); assertTrue(c2.isClosed()); assertTrue(suppressor.suppressions.isEmpty()); }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/org/codelibs/fess/llm/LlmExceptionTest.java
boolean caught = false; try { throw new LlmException("Test exception"); } catch (final LlmException e) { caught = true; assertEquals("Test exception", e.getMessage()); } assertTrue(caught); } @Test public void test_catchAsFessSystemException() { boolean caught = false; try {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 05 04:19:06 GMT 2026 - 5.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ThemeExceptionTest.java
} catch (ThemeException e) { assertEquals(expectedMessage, e.getMessage()); assertNull(e.getCause()); } catch (Exception e) { fail("Should have caught ThemeException, but caught: " + e.getClass()); } } @Test public void test_throwAndCatchWithCause() { // Test throwing and catching exception with cause
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 8.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ServletRuntimeExceptionTest.java
ServletException originalException = new ServletException("Throw test"); try { throw new ServletRuntimeException(originalException); } catch (ServletRuntimeException caught) { // Verify the caught exception assertNotNull(caught); assertEquals(originalException, caught.getCause());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 5.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
assertNotNull(e); assertNull(e.getMessage()); } catch (Exception e) { fail("Should have caught DictionaryExpiredException"); } } @Test public void test_throwAsRuntimeException() { // Test that it can be caught as RuntimeException try { throw new DictionaryExpiredException(); } catch (RuntimeException e) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 7.5K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NbtExceptionTest.java
/** * Test that NbtException can be caught as a CIFSException. */ @Test @DisplayName("NbtException should be catchable as CIFSException") void testCatchableAsCIFSException() { try { throw new NbtException(NbtException.ERR_NAM_SRVC, NbtException.FMT_ERR); } catch (CIFSException e) { assertTrue(e instanceof NbtException, "Caught exception should be an instance of NbtException");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java
// Execute the job - Error should NOT be caught since implementation only catches Exception try { aggregateLogJob.execute(); fail("OutOfMemoryError should not be caught by Exception handler"); } catch (OutOfMemoryError e) { // Expected - OutOfMemoryError is not caught by Exception handler assertEquals("Simulated OOM", e.getMessage());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 12.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java
assertNull(e.getCause()); } catch (Exception e) { fail("Should have caught ResultOffsetExceededException"); } } @Test public void test_throwAndCatchAsFessSystemException() { // Test catching as parent class FessSystemException String expectedMessage = "Caught as FessSystemException"; try {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.9K bytes - Click Count (0) -
src/test/java/jcifs/util/PathValidatorTest.java
// These tests validate current behavior where problematic paths are caught by other checks // Test invalid server name with dots - caught by directory traversal check assertThrows(SmbException.class, () -> { validator.validatePath("\\\\..\\share"); }); // Test invalid characters in paths - caught by null byte check assertThrows(SmbException.class, () -> {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.6K bytes - Click Count (0)