- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 519 for setMessage (0.04 sec)
-
src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java
TransportException wrapper = new TransportException("Wrapper", original); assertEquals("Wrapper", wrapper.getMessage()); assertEquals(original, wrapper.getRootCause()); assertEquals(originalMessage, ((TransportException) wrapper.getRootCause()).getMessage()); } }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K 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) -
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/CIFSUnsupportedCryptoExceptionTest.java
void testDefaultConstructor() { // Given & When CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException(); // Then assertNull(exception.getMessage(), "Default constructor should have null message"); assertNull(exception.getCause(), "Default constructor should have null cause");
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/smb/SmbUnsupportedOperationExceptionTest.java
// Arrange & Act SmbUnsupportedOperationException ex = new SmbUnsupportedOperationException(); // Assert assertEquals("Operation is not supported with the negotiated capabilities", ex.getMessage(), "Default message should match the class contract"); assertNull(ex.getCause(), "No cause expected from default constructor"); assertTrue(ex instanceof SmbException, "Should be an SmbException");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
} catch (RepositoryMetadataReadException e) { if (getLogger().isDebugEnabled()) { getLogger().warn(e.getMessage(), e); } else { getLogger().warn(e.getMessage()); } return setRepository; } if (repoMetadata.isSnapshot() && (previousMetadata != null)) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 18.9K bytes - Viewed (0) -
compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java
void testNoProblems() { ToolchainsBuildingException e = new ToolchainsBuildingException(Collections.emptyList()); assertEquals("0 problems were encountered while building the effective toolchains" + LS, e.getMessage()); } @Test void testOneProblem() { ProblemCollector problemCollector = ProblemCollectorFactory.newInstance(null);
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Mar 26 19:31:34 UTC 2025 - 3.1K 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) -
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) -
impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuildingExceptionTest.java
results.add(result2); ProjectBuildingException exception = new ProjectBuildingException(results); String message = exception.getMessage(); assertTrue( message.contains("3 problems were encountered while processing the POMs (2 errors)"), "Message should contain problem count and error count");
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sat Jul 26 19:15:57 UTC 2025 - 6.7K bytes - Viewed (0)