- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for getShare (1.05 sec)
-
src/test/java/jcifs/DfsReferralDataTest.java
void testGetShare() { // Given String share = "testshare"; when(mockReferralData.getShare()).thenReturn(share); // When String result = mockReferralData.getShare(); // Then assertEquals(share, result); verify(mockReferralData).getShare(); } @Test @DisplayName("Should get path consumed") void testGetPathConsumed() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
if (t != null) { if (log.isDebugEnabled()) { log.debug("Tree is " + t); } if (Objects.equals(loc.getShare(), t.getShare())) { try (SmbSessionImpl session = t.getSession()) { targetDomain = session.getTargetDomain(); if (!session.isFailed()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
SmbResourceLocatorImpl copy = l.clone(); assertEquals(l.getURLPath(), copy.getURLPath()); assertEquals(l.getUNCPath(), copy.getUNCPath()); assertEquals(l.getShare(), copy.getShare()); assertEquals(l.getType(), copy.getType()); assertSame(l.getURL(), copy.getURL()); } @ParameterizedTest @DisplayName("queryLookup extracts values case-insensitively")
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/internal/dfs/DfsReferralDataImplTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
if (dunc.charAt(0) != '\\') { log.warn("No slash at start of remaining DFS path " + dunc); } this.unc = dunc; if (dr.getShare() != null && !dr.getShare().isEmpty()) { this.share = dr.getShare(); } if (reqPath != null && reqPath.endsWith("\\") && !dunc.endsWith("\\")) { dunc += "\\"; } return dunc; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 23.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
// Test with mock when(mockReferralData.getShare()).thenReturn(share); assertEquals(share, mockReferralData.getShare()); verify(mockReferralData, times(1)).getShare(); // Test with concrete implementation String concreteShare = concreteImplementation.getShare(); // Should be share based on our initialization
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 28.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
public void testGetShare() throws MalformedURLException { assertEquals("share", new SmbFile("smb1://server/share/file.txt").getShare()); assertEquals("share", new SmbFile("smb1://server/share/").getShare()); assertEquals(null, new SmbFile("smb1://server/").getShare()); } @Test public void testGetServer() throws MalformedURLException {
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/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java
if (!(obj instanceof final DfsReferralData other)) { return false; } return Objects.equals(getServer(), other.getServer()) && Objects.equals(getShare(), other.getShare()) && Objects.equals(getPath(), other.getPath()) && Objects.equals(getPathConsumed(), other.getPathConsumed()); } /** * Set the referral data from a referral response *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.7K bytes - Viewed (0) -
src/main/java/jcifs/DfsReferralData.java
* @return the domain this referral is for */ String getDomain(); /** * Get the share this referral points to * * @return the share this referral points to */ String getShare(); /** * Get the number of characters from the UNC path that were consumed by this referral * * @return the number of characters from the unc path that were consumed by this referral */
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/smb/SmbTreeImpl.java
} /** * @return the service */ public String getService() { return this.service; } /** * @return the share */ public String getShare() { return this.share; } /** * @return whether this is a DFS share */ public boolean isDfs() { return this.inDfs; } /** *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30K bytes - Viewed (0)