- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for MalformedURLException (0.32 sec)
-
src/test/java/jcifs/context/CIFSContextWrapperTest.java
// For coverage, we'll ensure the method doesn't throw MalformedURLException for a valid URL // and that it attempts to create an SmbFile. // We cannot directly mock `new SmbFile()`, so we rely on the fact that if it doesn't throw, it's working as expected. // This test primarily ensures that the wrapper correctly handles the MalformedURLException // and delegates the SmbFile creation.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
* @throws SmbException if an SMB error occurs * @throws MalformedURLException if the URL is malformed * @throws UnknownHostException if the host cannot be resolved */ public SmbRandomAccessFile(final String url, final String mode, final int shareAccess) throws SmbException, MalformedURLException, UnknownHostException { this(new SmbFile(url, "", null, shareAccess), mode); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
* @throws SmbException if an SMB error occurs * @throws MalformedURLException if the URL is not properly formatted * @throws UnknownHostException if the host cannot be resolved */ public SmbFileOutputStream(final String url) throws SmbException, MalformedURLException, UnknownHostException { this(url, false); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.net.MalformedURLException; import java.net.URL; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
FileEntryAdapterIterator iterator = new FileEntryAdapterIterator(parent, delegate, null) { @Override protected SmbResource adapt(FileEntry e) throws MalformedURLException { throw new MalformedURLException("Always fails"); } }; // When all entries fail, iterator should be empty assertFalse(iterator.hasNext()); assertNull(iterator.next());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
@Test void testConstructorWithURL() throws MalformedURLException { // Arrange & Act SmbFile file = new SmbFile(url, mockCifsContext); // Assert assertNotNull(file); assertEquals(mockCifsContext, file.getContext()); } @Test void testConstructorWithStringURL() throws MalformedURLException { // Arrange & Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcHandle.java
* @return a DCERPC handle for the given url * @throws MalformedURLException * if the URL is malformed * @throws DcerpcException * if there is an error establishing the connection */ public static DcerpcHandle getHandle(final String url, final CIFSContext tc) throws MalformedURLException, DcerpcException { return getHandle(url, tc, false); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
import static org.mockito.Mockito.lenient; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.lang.reflect.Field; import java.net.MalformedURLException; import java.net.URL; import java.net.URLStreamHandler; import java.net.URLStreamHandlerFactory; import java.util.ArrayList; import java.util.List; import org.junit.jupiter.api.BeforeAll;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java
* @throws UnknownHostException if the host cannot be resolved * @throws MalformedURLException if the URL is malformed * @throws DcerpcException if DCERPC initialization fails */ public static DcerpcHandle getHandle(final String url, final NtlmPasswordAuthentication auth) throws UnknownHostException, MalformedURLException, DcerpcException { if (url.startsWith("ncacn_np:")) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
* @throws SmbException if an SMB error occurs * @throws MalformedURLException if the URL is malformed */ @SuppressWarnings("resource") public SmbRandomAccessFile(final String url, final String mode, final int sharing, final CIFSContext tc) throws SmbException, MalformedURLException { this(new SmbFile(url, tc), mode, sharing, true); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0)