- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for srv (0.32 sec)
-
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/netbios/UniAddress.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java
assertDoesNotThrow(() -> new MsrpcSamrConnect2("\\\\srv", -42, ph)); } @Test @DisplayName("should handle null policy handle") void testNullPolicyHandleHandled() { // Act & Assert - The constructor accepts null policy handle without throwing assertDoesNotThrow(() -> new MsrpcSamrConnect2("\\\\srv", 0, null)); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/NetbiosNameTest.java
} } @Test @DisplayName("Should handle special characters in names") void testSpecialCharacters() { String[] testNames = { "SERVER-1", "SERVER_A", "SRV123", "MY-SRV" }; for (String testName : testNames) { when(mockNetbiosName.getName()).thenReturn(testName); assertEquals(testName, mockNetbiosName.getName()); } } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb1/SmbClientTest.java
sambaServer = new GenericContainer<>(IMAGE_NAME).withExposedPorts(139, 445)// .withCopyFileToContainer(mountablePublic, "/share")// .withCopyFileToContainer(mountableUsers, "/srv") .withCopyFileToContainer(mountableTestuser1, "/testuser1")// .withCopyFileToContainer(mountableTestuser2, "/testuser2")// .withCopyFileToContainer(mountableEmpty, "/empty")//Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Tue Sep 23 06:42:59 UTC 2025 - 30K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb/SmbClientTest.java
sambaServer = new GenericContainer<>(IMAGE_NAME).withExposedPorts(139, 445)// .withCopyFileToContainer(mountablePublic, "/share")// .withCopyFileToContainer(mountableUsers, "/srv") .withCopyFileToContainer(mountableTestuser1, "/testuser1")// .withCopyFileToContainer(mountableTestuser2, "/testuser2")// .withCommand(//Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Tue Sep 23 06:42:59 UTC 2025 - 31.9K bytes - Viewed (0)