- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for workgroup (0.09 sec)
-
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/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/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/main/java/jcifs/SmbResourceLocator.java
* <code>SmbFile</code> or in the case of URLs that only specify a server * or workgroup, the server or workgroup will be returned. The name of * the root URL <code>smb://</code> is also <code>smb://</code>. If this * <code>SmbFile</code> refers to a workgroup, server, share, or directory, * the name will include a trailing slash '/' so that composing new
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/SmbResourceLocatorImplTest.java
// Share when share set but no path assertEquals(SmbConstants.TYPE_SHARE, locator("smb://server/share/").getType()); // Workgroup when no authority assertEquals(SmbConstants.TYPE_WORKGROUP, locator("smb:///").getType()); // Server vs Workgroup depends on NetBIOS name type 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/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) -
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/test/java/jcifs/internal/RequestWithPathTest.java
} @Test @DisplayName("Test getDomain returns correct domain") void testGetDomain() { // Test with mock String expectedDomain = "WORKGROUP"; when(requestWithPath.getDomain()).thenReturn(expectedDomain); assertEquals(expectedDomain, requestWithPath.getDomain()); verify(requestWithPath, times(1)).getDomain();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0)