Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for invalid_url (0.05 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/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)
  4. 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)
Back to top