Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for invalid_url (0.04 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

                assertEquals(expectedEndpoint, binding.getEndpoint());
            }
    
            @ParameterizedTest
            @DisplayName("Should reject invalid binding URLs")
            @ValueSource(strings = { "invalid_url", "proto:", "proto:server[]", "proto:[key=]", "proto:[=value]", "proto:server[endpoint=]",
                    "proto:[endpoint=]" })
            void testParseInvalidBindingUrls(String url) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

                // 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
            public void testConstructorWithContextAndName() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

            assertTrue(transformer.isValidUrl("http://www.example.com"));
            assertTrue(transformer.isValidUrl("http://www.example.com/aaa"));
            assertTrue(transformer.isValidUrl("https://www.example.com"));
            assertTrue(transformer.isValidUrl("://www.example.com"));
            assertTrue(transformer.isValidUrl("//www.example.com"));
    
            assertFalse(transformer.isValidUrl(null));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 41.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

        void invalidUrlPathThrows() throws Exception {
            // Override the default setup for this specific test
            URL invalidUrl = new URL("smb://server/share/dir"); // no trailing '/'
            when(locator.getURL()).thenReturn(invalidUrl);
    
            SmbException ex =
                    assertThrows(SmbException.class, () -> new DirFileEntryEnumIterator1(tree, parent, "*", (ResourceNameFilter) null, 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            @Test
            @DisplayName("Should throw DcerpcException for invalid URL format")
            void testConstructor_InvalidUrl() {
                String invalidUrl = "invalid:server";
                assertThrows(DcerpcException.class, () -> new DcerpcPipeHandle(invalidUrl, mockContext, false),
                        "Should throw DcerpcException for invalid protocol");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

        /**
         * Validates if the given URL string is a valid URL.
         *
         * @param urlStr the URL string to validate
         * @return true if the URL is valid, false otherwise
         */
        protected boolean isValidUrl(final String urlStr) {
            if (StringUtil.isBlank(urlStr)) {
                return false;
            }
            final String value;
            if (urlStr.startsWith("://")) {
                value = "http" + urlStr;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 54.4K bytes
    - Viewed (0)
Back to top