- Sort Score
- Num 10 results
- Language All
Results 1111 - 1120 of 1,645 for Because (0.05 seconds)
-
src/test/java/org/codelibs/fess/exception/SsoMessageExceptionTest.java
final Exception cause = new RuntimeException("Test cause"); // Execute final SsoMessageException exception = new SsoMessageException(messageCode, null, cause); // Verify assertNotNull(exception); assertNull(exception.getMessage()); assertEquals(cause, exception.getCause()); assertEquals(messageCode, exception.getMessageCode()); } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java
// Then assertSame(cause, exception.getCause(), "Crypto cause should be preserved"); assertEquals(cause.toString(), exception.getMessage(), "Message should be cause.toString() when only cause is provided"); } @Test @DisplayName("Message and cause constructor should preserve both crypto parameters") void testMessageAndCauseConstructor() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
} } @Test @DisplayName("Cause-only constructor: preserves provided cause; no interactions with cause") void causeOnlyConstructor_preservesCause_andNoInteractions() { // Arrange & Act SMBProtocolDecodingException ex = new SMBProtocolDecodingException(mockCause); // Assert cause propagation assertSame(mockCause, ex.getCause(), "Cause should be exactly the provided instance");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ThumbnailGenerationExceptionTest.java
assertEquals("Thumbnail generation error", exception.getMessage()); assertEquals(middleCause, exception.getCause()); assertEquals("Processing failed", exception.getCause().getMessage()); assertEquals(innerCause, exception.getCause().getCause()); assertEquals("Invalid image format", exception.getCause().getCause().getMessage()); } @Test public void test_serialization() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 10.3K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/ConnectionTimeoutExceptionTest.java
assertNull(exception.getCause(), "Cause should be null for string constructor"); } @Test void testThrowableConstructor() { // Test the constructor with a cause Throwable cause = new RuntimeException("Root cause of timeout"); ConnectionTimeoutException exception = new ConnectionTimeoutException(cause);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2K bytes - Click Count (0) -
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
@Test @DisplayName("Should provide correct cause for constructor with cause only") void testCauseOnlyConstructorMessage() { // Given RuntimeException cause = new RuntimeException("Specific cause message"); // When RuntimeCIFSException exception = new RuntimeCIFSException(cause); // Then assertEquals(cause, exception.getCause()); assertNotNull(exception.getMessage());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.2K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/RequestTimeoutExceptionTest.java
assertEquals(cause, exception.getCause(), "Cause should match the provided throwable"); } @Test void testMessageAndCauseConstructor() { // Test the constructor with both message and cause arguments String message = "Test message with cause"; Throwable cause = new IllegalArgumentException("Invalid argument");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/CommandExecutionExceptionTest.java
assertEquals(message, exception.getMessage()); assertEquals(middleCause, exception.getCause()); assertEquals("Middle cause", exception.getCause().getMessage()); assertEquals(rootCause, exception.getCause().getCause()); assertEquals("Root cause", exception.getCause().getCause().getMessage()); } @Test public void test_serialVersionUID() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 9.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java
throw new DataStoreException(errorMessage, cause); } catch (DataStoreException e) { assertEquals(errorMessage, e.getMessage()); assertEquals(cause, e.getCause()); assertEquals("IO error", e.getCause().getMessage()); } catch (Exception e) { fail("Should have caught DataStoreException specifically"); } } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 8.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/exception/SQLRuntimeException.java
* * @param cause the underlying exception */ public SQLRuntimeException(final SQLException cause) { super("ECL0072", asArray(getSql(cause), getRealMessage(cause), Integer.toString(cause.getErrorCode()), cause.getSQLState()), cause); } /** * Returns the <code>SQL</code>. * * @param cause the underlying exception * @return the <code>SQL</code>Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 2.5K bytes - Click Count (0)