Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for getPath (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            // Test path with both leading and trailing backslash
            request.setPath("\\test\\directory\\");
            assertEquals("\\test\\directory", request.getPath());
    
            // Test single backslash
            request.setPath("\\");
            assertEquals("\\", request.getPath());
    
            // Test empty path
            request.setPath("");
            assertEquals("\\", request.getPath());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/RequestWithPathTest.java

            assertEquals(expectedPath, testImplementation.getPath());
        }
    
        @Test
        @DisplayName("Test setPath updates path correctly")
        void testSetPath() {
            // Test with mock
            String newPath = "/new/path/file.txt";
            doNothing().when(requestWithPath).setPath(newPath);
    
            requestWithPath.setPath(newPath);
            verify(requestWithPath, times(1)).setPath(newPath);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java

                    }
    
                    // Perform the actual reconnection
                    boolean success = performReconnection(info);
    
                    if (success) {
                        handleManager.completeReconnect(info.getPath(), true);
                        log.info("Successfully reconnected handle: {}", info.getPath());
                        return info;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 8.5K bytes
    - Viewed (1)
  4. src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java

                when(mockFile.getPath()).thenReturn("/share/dir/");
                RecordingFilter filter = new RecordingFilter();
                filter.accept(mockFile);
                // Verify the filter stored the reference
                // assertSame may not be necessary but demonstrates captured file
                // we simply check that getPath was called
                verify(mockFile, times(1)).getPath();
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/HandlerTest.java

            assertEquals("host", url1.getHost());
            assertEquals(445, url1.getPort());
            assertEquals("/share", url1.getPath());
    
            assertEquals("smb", url2.getProtocol());
            assertEquals("host", url2.getHost());
            assertEquals(1234, url2.getPort());
            assertEquals("/share/file.txt", url2.getPath());
    
            assertEquals("smb", url3.getProtocol());
            assertEquals("host", url3.getHost());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

            // Stub the getPath method to return a specific value
            when(mockDir.getPath()).thenReturn("/share/folder/");
    
            // Implementation uses dir.getPath() to check if file should be in that path
            SmbFilenameFilter filter = (dir, name) -> {
                if (dir == null)
                    return false;
                String path = dir.getPath();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/DfsReferralDataTest.java

        void testGetPath() {
            // Given
            String path = "/test/path";
            when(mockReferralData.getPath()).thenReturn(path);
    
            // When
            String result = mockReferralData.getPath();
    
            // Then
            assertEquals(path, result);
            verify(mockReferralData).getPath();
        }
    
        @Test
        @DisplayName("Should get expiration")
        void testGetExpiration() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

                    StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING))) {
                oos.writeObject(info);
                log.debug("Persisted handle: {}", info.getPath());
            } catch (IOException e) {
                log.error("Failed to persist handle: " + info.getPath(), e);
            }
        }
    
        private void removePersistedHandle(HandleInfo info) {
            if (info.getType() != HandleType.PERSISTENT) {
                return;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                assertEquals("path2", combined.getPath());
                assertEquals("DOMAIN", combined.getDomain());
                assertEquals(second.getExpiration(), combined.getExpiration());
    
                // Path consumed should be combined
                int expectedPathConsumed = 20 + 15;
                if (first.getPath() != null) {
                    expectedPathConsumed -= (first.getPath().length() + 1);
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                return str.substring(0, i + 1);
            }
    
            return "smb://";
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#getPath()
         */
    
        @Override
        public String getPath() {
            return this.url.toString();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#getCanonicalURL()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
Back to top