Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for MalformedURLException (0.14 sec)

  1. 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)
  2. src/test/java/jcifs/smb/SmbNamedPipeTest.java

            void rejectsNonIpcShare(String url) {
                // Arrange & Act & Assert
                MalformedURLException ex =
                        assertThrows(MalformedURLException.class, () -> new SmbNamedPipe(url, SmbPipeResource.PIPE_TYPE_RDWR, ctx()));
                assertEquals("Named pipes are only valid on IPC$", ex.getMessage());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

            public void testConstructorWithMalformedUrl() {
                // Test that constructor throws MalformedURLException for completely invalid URL
                // Note: http:// URLs are actually accepted by the URL constructor but the protocol is changed to smb
                String invalidUrl = "not-a-valid-url";
                assertThrows(MalformedURLException.class, () -> new SmbFile(invalidUrl));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  4. 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)
  5. src/test/java/jcifs/smb/HandlerTest.java

    import static org.mockito.Mockito.atLeastOnce;
    import static org.mockito.Mockito.never;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLConnection;
    import java.util.stream.Stream;
    
    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
    - 7.8K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.repository;
    
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.List;
    
    import org.apache.maven.RepositoryUtils;
    import org.apache.maven.artifact.repository.ArtifactRepository;
    import org.apache.maven.settings.Mirror;
    
    /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/main/java/jcifs/smb/NetServerFileEntryAdapterIterator.java

            super(parent, delegate, filter);
        }
    
        /**
         * @param fe
         * @return
         * @throws MalformedURLException
         */
        @Override
        protected SmbResource adapt(final FileEntry e) throws MalformedURLException {
            return new SmbFile(getParent(), e.getName(), false, e.getType(), SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY, 0L, 0L,
                    0L, 0L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/FileEntryAdapterIterator.java

                    } catch (final MalformedURLException e) {
                        log.error("Failed to create child URL", e);
                        continue;
                    }
                }
    
                try (SmbResource r = adapt(fe)) {
                    if (this.filter.accept(r)) {
                        return r;
                    }
                } catch (final MalformedURLException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.4K bytes
    - Viewed (0)
Back to top