Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for srv (0.08 sec)

  1. src/test/java/jcifs/smb/SIDTest.java

                SID sid = new SID("S-1-5-21-1-2");
                sid.initContext("srv", mockCtx);
    
                // First accessor triggers resolution
                int t1 = sid.getType();
                assertEquals(t1, sid.getType()); // second call should not trigger again
                verify(mockResolver, times(1)).resolveSids(eq(mockCtx), eq("srv"), any(jcifs.SID[].class));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

            // Create a spy to track method calls
            SmbTreeConnection c = spy(newConn());
    
            // Prepare a minimal locator
            SmbResourceLocatorImpl loc = new SmbResourceLocatorImpl(ctx, smbUrl("smb://srv/share/path"));
    
            // Setup a tree that will fail with transport error first, then succeed
            SmbTreeImpl tree = mock(SmbTreeImpl.class);
            when(tree.acquire(false)).thenReturn(tree);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/UniAddress.java

                } catch (final IOException ioe) {
                    // Failure
                }
            }
            throw new UnknownHostException(hostname);
        }
    
        /**
         * Perform DNS SRV lookup on successively shorter suffixes of name
         * and return successful suffix or throw an UnknownHostException.
        import javax.naming.*;
        import javax.naming.directory.*;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            // Query parameter 'server' takes precedence
            UniAddress a1 = mock(UniAddress.class);
            when(nsc.getByName("srv-from-query")).thenReturn(a1);
            SmbResourceLocatorImpl l1 = locator("smb://host/share?server=srv-from-query");
            assertSame(a1, l1.getAddress());
    
            // Query parameter 'address' builds UniAddress from IP
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            when(cfg.isTraceResourceUsage()).thenReturn(false);
            stubValidTree(8L, true, true);
    
            SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, new byte[] { 1, 2, 3 }, tree, "//srv/share", 0, 0, 0, 0, 0L);
    
            // Increase usage to 2
            h.acquire();
    
            // First release: should not close yet
            h.release();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top