- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for isWorkgroup (0.5 sec)
-
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
assertEquals(SmbConstants.TYPE_SERVER, server.getType()); } @Test @DisplayName("isWorkgroup true for empty host or NetBIOS 0x1d/0x1b") void testIsWorkgroup() throws Exception { assertTrue(locator("smb:///share").isWorkgroup()); // empty host Address addr = mock(Address.class); NetbiosAddress nb = mock(NetbiosAddress.class);
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/SmbResourceLocatorTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
when(parent.getContext()).thenReturn(this.ctx); when(parent.getLocator()).thenReturn(parentLocator); // Make the parent appear as a workgroup to use the simpler URL code-path when(parentLocator.isWorkgroup()).thenReturn(true); } /** Simple implementation of FileEntry for controlled inputs in tests. */ private static final class StubFileEntry implements FileEntry { private final String name;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/SmbResourceLocator.java
* Determines whether this resource represents a workgroup reference. * * @return whether this is a workgroup reference * @throws CIFSException if the determination cannot be made */ boolean isWorkgroup() throws CIFSException; /** * Determines whether this resource represents the root of the SMB hierarchy. * * @return whether this is a root resource */ boolean isRoot();
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/main/java/jcifs/smb/SmbResourceLocatorImpl.java
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/main/java/jcifs/smb/SmbFile.java
this(isWorkgroup(context) ? new URL(null, "smb://" + checkName(name) + "/", context.getContext().getUrlHandler()) : new URL(context.getLocator().getURL(), encodeRelativePath(checkName(name)) + ((attributes & ATTR_DIRECTORY) > 0 ? "/" : "")), context.getContext()); if (!isWorkgroup(context)) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0)