Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for myworkgroup (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/main/java/jcifs/SmbResource.java

         * <code>SmbResource</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>SmbResource</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
    - 28K bytes
    - Viewed (1)
  7. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

        @Test
        @DisplayName("Test oemDomainName field with various string values")
        public void testOemDomainNameField() {
            // Test with normal string
            serverData.oemDomainName = "WORKGROUP";
            assertEquals("WORKGROUP", serverData.oemDomainName);
    
            // Test with empty string
            serverData.oemDomainName = "";
            assertEquals("", serverData.oemDomainName);
    
            // Test with null
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  8. src/main/java/jcifs/netbios/NbtAddress.java

     *
     * MAC Address = 00-B0-34-21-FA-3B
     * </pre>
     *
     * </blockquote>
     *
     *  * The hostname of this machine is <code>JMORRIS2</code>. It is
     * a member of the group(a.k.a workgroup and domain) <code>BILLING-NY</code>. To
     * obtain an {@link java.net.InetAddress} for a host one might do:
     *
     * <pre>
     *
     * InetAddress addr = NbtAddress.getByName("jmorris2").getInetAddress();
     * </pre>
     *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/SambaHelperTest.java

            }
    
            @Override
            public String getAccountName() {
                return "Test User";
            }
    
            @Override
            public String getDomainName() {
                return "WORKGROUP";
            }
    
            @Override
            public String getTypeText() {
                return "User";
            }
    
            @Override
            public int getType() {
                return 1;
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

            lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockLocalHost);
            lenient().when(mockLocalHost.getHostName()).thenReturn("localhost");
            lenient().when(mockConfig.getDefaultDomain()).thenReturn("WORKGROUP");
            lenient().when(mockConfig.isUseUnicode()).thenReturn(true);
        }
    
        @Test
        @DisplayName("Should create Type 1 message with default flags")
        void testType1MessageCreation() {
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top