- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for testGetParent (1.07 sec)
-
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
// Test root name assertEquals("smb1://", new SmbFile("smb1://").getName()); } @Test public void testGetParent() throws MalformedURLException { // Test parent of a file assertEquals("smb1://server/share/", new SmbFile("smb1://server/share/file.txt").getParent()); // Test parent of a directory
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
// root fallback SmbResourceLocatorImpl d = locator("smb:///"); assertEquals("smb://", d.getName()); } @Test @DisplayName("Parent URL is computed correctly") void testGetParent() { SmbResourceLocatorImpl a = locator("smb://server/share/dir/file.txt"); assertEquals("smb://server/share/dir/", a.getParent()); SmbResourceLocatorImpl b = locator("smb://server/share/");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
// Act & Assert assertEquals(mockCifsContext, smbFile.getTransportContext()); } } @Nested class WhenHandlingPaths { @Test void testGetParent() { // Act & Assert assertEquals("smb://localhost/share/", smbFile.getParent()); } @Test void testGetCanonicalPath() { // Act & Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0)