- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 51 for caught (0.06 sec)
-
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()); } } public void test_throwAndCatchWithCause() { // Test throwing and catching exception with cause
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
assertNotNull(e); assertNull(e.getMessage()); } catch (Exception e) { fail("Should have caught DictionaryExpiredException"); } } public void test_throwAsRuntimeException() { // Test that it can be caught as RuntimeException try { throw new DictionaryExpiredException(); } catch (RuntimeException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.2K bytes - Viewed (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());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java
assertNull(e.getCause()); } catch (Exception e) { fail("Should have caught ResultOffsetExceededException"); } } public void test_throwAndCatchAsFessSystemException() { // Test catching as parent class FessSystemException String expectedMessage = "Caught as FessSystemException"; try { throw new ResultOffsetExceededException(expectedMessage);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.6K bytes - Viewed (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");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/SearchQueryExceptionTest.java
} catch (SearchQueryException e) { assertEquals(expectedMessage, e.getMessage()); assertNull(e.getCause()); } catch (Exception e) { fail("Should have caught SearchQueryException"); } } public void test_throwWithCauseAndCatch() { // Test throwing with cause and catching String expectedMessage = "Test with cause";
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/CommandExecutionExceptionTest.java
assertNull(e.getCause()); } catch (Exception e) { fail("Should have caught CommandExecutionException"); } } public void test_exceptionThrownWithCause() { // Test that the exception with cause can be thrown and caught properly String expectedMessage = "Command failed to execute";
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/ReflectionFreeAssertThrows.java
} catch (Throwable t) { if (predicate.apply(t)) { // We are careful to set up INSTANCE_OF to match each Predicate to its target Class. @SuppressWarnings("unchecked") T caught = (T) t; return caught; } throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ReflectionFreeAssertThrows.java
} catch (Throwable t) { if (predicate.apply(t)) { // We are careful to set up INSTANCE_OF to match each Predicate to its target Class. @SuppressWarnings("unchecked") T caught = (T) t; return caught; } throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/ReflectionFreeAssertThrows.java
} catch (Throwable t) { if (predicate.apply(t)) { // We are careful to set up INSTANCE_OF to match each Predicate to its target Class. @SuppressWarnings("unchecked") T caught = (T) t; return caught; } throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.3K bytes - Viewed (0)