- Sort Score
- Num 10 results
- Language All
Results 221 - 230 of 598 for setMessage (0.06 seconds)
-
src/test/java/jcifs/context/CIFSContextWrapperTest.java
String malformedUrl = "invalid-url"; CIFSException thrown = assertThrows(CIFSException.class, () -> { cifsContextWrapper.get(malformedUrl); }); assertTrue(thrown.getMessage().contains("Invalid URL")); assertTrue(thrown.getCause() instanceof MalformedURLException); } @Test void testGetPipe() throws CIFSException, MalformedURLException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
byte[] actualBuffer = (byte[]) outputBufferField.get(response); assertSame(outputBuffer, actualBuffer); } catch (Exception e) { fail("Failed to access outputBuffer field: " + e.getMessage()); } } @Test void testWriteSetupWireFormat() { // Test that writeSetupWireFormat returns 0 byte[] dst = new byte[100];
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java
// Act & Assert IOException thrown = assertThrows(IOException.class, () -> { new LsaPolicyHandle(mockDcerpcHandle, server, access); }); assertEquals("Network error", thrown.getMessage()); verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class)); } @Test void close_shouldClosePolicySuccessfully() throws IOException { // Arrange
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.2K bytes - Click Count (0) -
src/main/java/org/codelibs/core/exception/UnsupportedEncodingRuntimeException.java
* * @param cause * the cause */ public UnsupportedEncodingRuntimeException(final UnsupportedEncodingException cause) { super("ECL0105", new Object[] { cause.getMessage() }, cause); }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Jul 05 00:11:05 GMT 2025 - 1.2K bytes - Click Count (0) -
src/test/java/org/codelibs/core/exception/SIndexOutOfBoundsExceptionTest.java
@Test public void testSIndexOutOfBoundsExceptionString() { final ClIndexOutOfBoundsException clIndexOutOfBoundsException = new ClIndexOutOfBoundsException("hoge"); assertThat(clIndexOutOfBoundsException.getMessage(), is("hoge")); }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellParser.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 1.4K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/ndr/NdrExceptionTest.java
void testConstructorWithMessage() { String testMessage = "This is a test message for NdrException."; NdrException exception = new NdrException(testMessage); assertEquals(testMessage, exception.getMessage(), "The exception message should match the input message."); } /** * Test the NO_NULL_REF static field. * Ensures that the static field holds the expected string value. */ @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.5K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
if (e.getCause() instanceof org.eclipse.aether.transfer.ArtifactNotFoundException) { throw new ArtifactNotFoundException(e.getMessage(), artifact, remoteRepositories, e); } else { throw new ArtifactResolutionException(e.getMessage(), artifact, remoteRepositories, e); } } artifact.selectVersion(result.getArtifact().getVersion());
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 25K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/EncryptParser.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 1.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
// When & Then: Constructor should throw SmbException SmbException exception = assertThrows(SmbException.class, () -> new NetServerEnumIterator(parent, treeHandle, "*", 0, null)); assertTrue(exception.getMessage().contains("invalid")); verify(treeHandle, never()).acquire(); } @Test @DisplayName("Constructor should handle null parent") void testConstructor_NullParent_ThrowsNPE() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.8K bytes - Click Count (0)