- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 161 for getCause (0.26 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java
// Verify chain assertSame(level1, topLevel.getCause()); assertSame(level2, topLevel.getCause().getCause()); assertSame(level3, topLevel.getCause().getCause().getCause()); assertNull(topLevel.getCause().getCause().getCause().getCause()); // Verify messages assertEquals("Top level", topLevel.getMessage());Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 20K bytes - Viewed (0) -
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
RuntimeCIFSException finalException = new RuntimeCIFSException("Final error", intermediateCause); // Then assertEquals(intermediateCause, finalException.getCause()); assertEquals(rootCause, finalException.getCause().getCause()); assertEquals("Final error", finalException.getMessage()); assertEquals("Intermediate", intermediateCause.getMessage());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
// Then assertNotNull(restored); assertEquals("serialize me", restored.getMessage()); assertNotNull(restored.getCause()); assertEquals(IllegalArgumentException.class, restored.getCause().getClass()); assertEquals("iaex", restored.getCause().getMessage()); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlExceptionTest.java
assertEquals("Final message", exception.getMessage()); assertSame(intermediateCause, exception.getCause()); assertSame(rootCause, exception.getCause().getCause()); } @Test public void testToString() { String message = "Test error message"; CurlException exception = new CurlException(message);Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/TransportExceptionTest.java
assertNull(nullCauseException.getCause()); // Test with both null TransportException bothNullException = new TransportException(null, null); assertNull(bothNullException.getMessage()); assertNull(bothNullException.getCause()); } @Test @DisplayName("Test deprecated getRootCause method returns the same as getCause") @SuppressWarnings("deprecation")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java
} else { assertEquals(msg, ex.getMessage(), "Message should be stored as provided"); } assertSame(cause, ex.getCause(), "Cause should be stored and retrievable"); assertSame(cause, ex.getRootCause(), "Deprecated getRootCause should match getCause"); assertEquals(NtStatus.NT_STATUS_UNSUCCESSFUL, ex.getNtStatus(), "Status should default to unsuccessful for message+cause ctor"); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/pac/PACDecodingExceptionTest.java
*/ @Test void testDefaultConstructor() { PACDecodingException e = new PACDecodingException(); // Expect null message and null cause assertNull(e.getMessage()); assertNull(e.getCause()); } /** * Test the constructor with a message. */ @Test void testMessageConstructor() { String errorMessage = "This is a test error message.";Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
// Assert - message and cause are null assertNull(ex.getMessage(), "Default constructor should have null message"); assertNull(ex.getCause(), "Default constructor should have null cause"); // Assert - toString shows class name when message is null assertEquals(SMBProtocolDowngradeException.class.getName(), ex.toString());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
if (e.getCause() instanceof MultipleArtifactsNotFoundException) { return true; } return e.getCause() instanceof org.eclipse.aether.resolution.ArtifactResolutionException && e.getCause().getCause() instanceof ArtifactNotFoundException; } private boolean isNonTransferablePom(Exception e) { if (e.getCause() instanceof ArtifactResolutionException) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Sep 25 12:03:50 UTC 2025 - 30.4K bytes - Viewed (0) -
src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java
CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException(); // Then assertNull(exception.getMessage(), "Default constructor should have null message"); assertNull(exception.getCause(), "Default constructor should have null cause"); assertTrue(exception instanceof RuntimeCIFSException, "Should extend RuntimeCIFSException");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0)