- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 248 for Cause (0.01 sec)
-
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
// Arrange - use a real cause so message is derived from cause.toString() Throwable cause = new IllegalStateException("proto mismatch"); String expectedMessage = cause.toString(); // Act SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(cause); // Assert - cause preserved, message derived from cause assertSame(cause, ex.getCause());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/pac/PACDecodingExceptionTest.java
// Expect the message to be set correctly and cause to be null assertEquals(errorMessage, e.getMessage()); assertNull(e.getCause()); } /** * Test the constructor with a cause. */ @Test void testCauseConstructor() { Throwable cause = new RuntimeException("Root cause"); PACDecodingException e = new PACDecodingException(cause);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/SMBSignatureValidationExceptionTest.java
@DisplayName("Message+Cause ctor: propagates message/cause and unsuccessful status") void messageAndCauseConstructor_setsMessageCause_andUnsuccessfulStatus(String msg) { // Arrange Throwable cause = new IllegalStateException("root cause"); // Act SMBSignatureValidationException ex = new SMBSignatureValidationException(msg, cause); // Assert if (msg == null) {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/util/transport/TransportExceptionTest.java
}); // Test throwing and catching with cause RuntimeException cause = new RuntimeException("Cause"); TransportException thrown = assertThrows(TransportException.class, () -> { throw new TransportException(cause); }); assertEquals(cause, thrown.getCause()); // Test throwing and catching with message and causeRegistered: 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/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() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (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");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
void testWithCause() { // Given IllegalArgumentException cause = new IllegalArgumentException("bad arg"); // When SpnegoException ex = new SpnegoException(cause); // Then assertNotNull(ex); assertEquals(cause, ex.getCause()); // IOException(Throwable) sets message to cause.toString()
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/main/java/jcifs/CIFSException.java
} /** * Constructs a CIFS exception with the specified detail message and cause. * * @param message the detail message * @param cause the cause of this exception */ public CIFSException(final String message, final Throwable cause) { super(message, cause); } /** * Constructs a CIFS exception with the specified detail message. *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/SMBProtocolDecodingException.java
} /** * Constructs a new SMBProtocolDecodingException with the specified detail message and cause. * * @param message the detail message * @param cause the cause of the exception */ public SMBProtocolDecodingException(final String message, final Throwable cause) { super(message, cause); } /** * Constructs a new SMBProtocolDecodingException with the specified detail message.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/pac/PACDecodingException.java
* Constructs a new PAC decoding exception with the specified cause. * @param cause the cause of the exception */ public PACDecodingException(final Throwable cause) { this(null, cause); } /** * Constructs a new PAC decoding exception with the specified detail message and cause. * @param message the detail message * @param cause the cause of the exception */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2K bytes - Viewed (1)