- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 523 for getMessage (0.16 sec)
-
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
// Arrange & Act SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(); // 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
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/CIFSExceptionTest.java
// When CIFSException exception = new CIFSException(message); // Then assertNotNull(exception); assertEquals(message, exception.getMessage()); assertTrue(exception instanceof IOException); } @Test @DisplayName("Should create CIFSException with message and cause") void testCIFSExceptionWithCause() { // GivenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
PACDecodingException e = assertThrows(PACDecodingException.class, () -> new Pac(emptyData, keys)); // Any PACDecodingException is acceptable for this test assertNotNull(e.getMessage()); } @Test void testTooSmallPac() { // Test that PAC smaller than 8 bytes is rejected byte[] smallData = new byte[4];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
compat/maven-settings/src/main/java/org/apache/maven/settings/io/xpp3/SettingsXpp3Reader.java
throw new XmlPullParserException(e.getMessage(), null, e); } } public Settings read(Reader reader) throws IOException, XmlPullParserException { try { return new Settings(delegate.read(reader)); } catch (XMLStreamException e) { throw new XmlPullParserException(e.getMessage(), null, e); } }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sat Apr 05 11:52:05 UTC 2025 - 4K bytes - Viewed (0) -
src/test/java/jcifs/pac/PACDecodingExceptionTest.java
* Test the default constructor. */ @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() {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
SMBSignatureValidationException ex = new SMBSignatureValidationException(msg); // Assert if (msg == null) { assertNull(ex.getMessage(), "Null message should remain null"); } else { assertEquals(msg, ex.getMessage(), "Message should be stored as provided"); } assertNull(ex.getCause(), "Cause should be null for message-only 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) -
compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java
problems.add(Problem.Severity.WARNING, e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e); } } catch (ToolchainsParseException e) { problems.add( Problem.Severity.FATAL, "Non-parseable toolchains " + toolchainsSource.getLocation() + ": " + e.getMessage(), e.getLineNumber(),Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Mar 05 09:37:42 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ConnectionTimeoutExceptionTest.java
@Test void testNoArgsConstructor() { // Test the no-argument constructor ConnectionTimeoutException exception = new ConnectionTimeoutException(); assertNull(exception.getMessage(), "Message should be null for no-arg constructor"); assertNull(exception.getCause(), "Cause should be null for no-arg constructor"); } @Test void testStringConstructor() {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/util/transport/RequestTimeoutExceptionTest.java
@Test void testNoArgsConstructor() { // Test the constructor with no arguments RequestTimeoutException exception = new RequestTimeoutException(); assertNull(exception.getMessage(), "Message should be null for no-arg constructor"); assertNull(exception.getCause(), "Cause should be null for no-arg constructor"); } @Test void testMessageConstructor() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
// Act + Assert: exception is propagated with message CIFSException ex = assertThrows(CIFSException.class, () -> handle.ensureDFSResolved()); assertEquals("DFS resolution failed", ex.getMessage()); verify(handle, times(1)).ensureDFSResolved(); } @ParameterizedTest @ValueSource(ints = { 0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE })Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0)