- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for myworkgroup (0.16 sec)
-
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) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
void testIsWorkgroup() throws Exception { assertTrue(locator("smb:///share").isWorkgroup()); // empty host Address addr = mock(Address.class); NetbiosAddress nb = mock(NetbiosAddress.class); when(addr.unwrap(NetbiosAddress.class)).thenReturn(nb); when(nb.getNameType()).thenReturn(0x1b);
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/main/java/jcifs/SmbResourceLocator.java
*/ int getType() throws CIFSException; /** * 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. *
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/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 {
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/smb/SmbFile.java
} /** * @return */ private static boolean isWorkgroup(final SmbResource r) { try { return r.getLocator().isWorkgroup(); } catch (final CIFSException e) { log.debug("Failed to check for workgroup", e); return false; } } /** * {@inheritDoc} *
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/test/java/jcifs/http/NetworkExplorerTest.java
when(session.getAttribute("npa-workgroup")).thenReturn(auth); // Test various path formats String[] testPaths = { "/", "/workgroup/", "/workgroup/server/", "/workgroup/server/share/", "/workgroup/server/share/file.txt" }; for (String path : testPaths) { when(request.getPathInfo()).thenReturn(path);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
} @Test @DisplayName("Constructor should handle workgroup type with non-empty host") void testConstructor_WorkgroupNonEmptyHost() throws Exception { // Given: Workgroup type with non-empty host when(locator.getType()).thenReturn(SmbConstants.TYPE_WORKGROUP); when(locator.getURL()).thenReturn(createSmbURL("smb://workgroup/")); // Mock successful response
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java
when(mockConfig.getTransactionBufferSize()).thenReturn(65535); } @Test @DisplayName("Test constructor with domain and server types") void testConstructor() { String domain = "WORKGROUP"; int serverTypes = NetServerEnum2.SV_TYPE_ALL; netServerEnum2 = new NetServerEnum2(realConfig, domain, serverTypes); assertNotNull(netServerEnum2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/NetServerEnumIterator.java
final SmbResourceLocator locator = parent.getLocator(); this.workgroup = locator.getType() == SmbConstants.TYPE_WORKGROUP; if (locator.getURL().getHost().isEmpty()) { this.request = new NetServerEnum2(th.getConfig(), th.getOEMDomainName(), NetServerEnum2.SV_TYPE_DOMAIN_ENUM); } else if (this.workgroup) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/WinErrorTest.java
Arguments.of(WinError.ERROR_SERVICE_NOT_INSTALLED, "The service is not available"), Arguments .of(WinError.ERROR_NO_BROWSER_SERVERS_FOUND, "The list of servers for this workgroup is not currently available.")); } @Test @DisplayName("Constants: values match Windows error codes") void constants_have_expected_values() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.4K bytes - Viewed (0)