- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 37 for uncu (0.02 sec)
-
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
SmbFile file = new SmbFile(baseUrl + "shared/unc.txt", context); String uncPath = file.getUncPath(); assertNotNull(uncPath, "UNC path should not be null"); log.info("UNC path: {}", uncPath); // Be more flexible about UNC path format - different implementations may vary assertTrue(uncPath.contains("shared") || uncPath.contains("unc.txt"),
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
src/main/java/jcifs/SmbResourceLocator.java
* the original. * * @return The canonicalized URL of this SMB resource. */ String getCanonicalURL(); /** * Returns the canonicalized UNC path of this SMB resource relative to its share. * * @return The canonicalized UNC path of this SMB resource (relative to it's share) */ String getUNCPath(); /** * Returns the canonicalized URL path relative to the server or domain.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
} @Test public void testGetUncPath() throws MalformedURLException { // Test UNC path conversion assertEquals("\\\\server\\share\\file.txt", new SmbFile("smb1://server/share/file.txt").getUncPath()); // For share URLs with trailing slash, the UNC path includes the trailing slash assertEquals("\\\\server\\share\\", new SmbFile("smb1://server/share/").getUncPath());
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/DfsImplTest.java
assertDoesNotThrow(() -> dfsImpl.cache(mockContext, "\\\\server\\share\\path", mockReferral)); } @Test void testCache_InvalidPath() { // Scenario: The UNC path provided is invalid. DfsReferralDataInternal mockReferral = mock(DfsReferralDataInternal.class); // Should not throw any exception.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
void setUp() { lenient().when(tree.getConfig()).thenReturn(config); } private SmbPipeHandleImpl newHandleWithBasicStubs(int pipeType, String unc) { when(pipe.getPipeType()).thenReturn(pipeType); when(pipe.getUncPath()).thenReturn(unc); return new SmbPipeHandleImpl(pipe); } @Test @DisplayName("ensureTreeConnected acquires and reuses the tree handle")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/DfsReferral.java
public long ttl; /** Target server for this referral */ public String server; // Server /** Target share for this referral */ public String share; // Share /** The complete UNC path link */ public String link; /** Path relative to tree from which this referral was thrown */ public String path; // Path relative to tree from which this referral was thrown
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequest.java
private final String path; /** * Creates a new SMB2 tree connect request to establish a connection to a network share. * * @param config the CIFS configuration * @param path the UNC path to the share to connect to */ public Smb2TreeConnectRequest(final Configuration config, final String path) { super(config, SMB2_TREE_CONNECT); this.path = path; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java
* * @param ctx the CIFS context containing configuration * @param server the server data containing security information * @param path the UNC path to the shared resource * @param service the service type (e.g., "A:" for disk share, "LPT1:" for printer) * @param andx the next command in the AndX chain, or null */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
void getDfsReferrals_happy() throws Exception { when(transport.getDfsReferrals(any(), any(), any(), any(), anyInt())).thenReturn(referral); String name = "\\\\server\\\\share\\\\path"; // UNC-like DFS path String host = "server.example"; String domain = "EXAMPLE"; int rn = 0; jcifs.DfsReferralData result = transport.getDfsReferrals(ctx, name, host, domain, rn);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
// Then assertEquals(3, maxReferralLevel); } @Test @DisplayName("Test with various filename formats") void testVariousFilenameFormats() { // Test UNC path assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\share")); // Test forward slashes assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "//server/share"));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11K bytes - Viewed (0)