- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for getLocator (0.61 sec)
-
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
void happyPath_enumerates_and_closes(String wildcard) throws Exception { // Setup required for this test when(parent.getLocator()).thenReturn(locator); when(locator.getUNCPath()).thenReturn("\\\\server\\share\\dir\\"); when(tree.getConfig()).thenReturn(config); when(config.getMaximumBufferSize()).thenReturn(65535);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
@Test @DisplayName("getLocator should return SmbResourceLocator") void testGetLocator() throws CIFSException { // Given SmbResource resource = createMockResource(); when(resource.getLocator()).thenReturn(mockLocator); // When SmbResourceLocator locator = resource.getLocator(); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java
return this.pipe.getContext(); } @Override public String getServer() { return this.pipe.getLocator().getServer(); } @Override public String getServerWithDfs() { return this.pipe.getLocator().getServerWithDfs(); } @Override public byte[] getSessionKey() throws CIFSException { return this.handle.getSessionKey(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/context/BaseContextTest.java
assertNotSame(pipe1, pipe2, "Different pipes should be different instances"); assertTrue(resource1.getLocator().getURL().toString().contains("server1"), "First resource should contain server1"); assertTrue(resource2.getLocator().getURL().toString().contains("server2"), "Second resource should contain server2"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
SmbFile parent = mock(SmbFile.class, RETURNS_DEEP_STUBS); SmbResourceLocator locator = mock(SmbResourceLocator.class); when(parent.getLocator()).thenReturn(locator); // Host is empty -> triggers master browser path URL anyUrlWithEmptyHost = new URL("file:/"); when(locator.getURL()).thenReturn(anyUrlWithEmptyHost);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
while (it.hasNext()) { try (SmbResource r = it.next()) { try (SmbFile ndest = new SmbFile(dest, r.getLocator().getName(), true, r.getLocator().getType(), r.getAttributes(), r.createTime(), r.lastModified(), r.lastAccess(), r.length())) { if (r instanceof SmbFile) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java
*/ @SuppressWarnings("resource") @Override protected FileEntry open() throws CIFSException { final SmbTreeHandleImpl th = getTreeHandle(); final String uncPath = getParent().getLocator().getUNCPath(); final Smb2CreateRequest create = new Smb2CreateRequest(th.getConfig(), uncPath); create.setCreateOptions(Smb2CreateRequest.FILE_DIRECTORY_FILE);
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/http/NetworkExplorerTest.java
// Setup default session attribute behavior lenient().when(session.getAttribute(anyString())).thenReturn(null); // Setup SmbFile mock lenient().when(smbFile.getLocator()).thenReturn(locator); lenient().when(locator.getCanonicalURL()).thenReturn("smb://server/share/"); } /** * Test servlet initialization with default parameters */ @Test
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
System.setProperty("java.protocol.handler.pkgs", pkgs + "|jcifs"); } } @BeforeEach void setUp() throws Exception { parent = mock(SmbFile.class); when(parent.getLocator()).thenReturn(locator); when(treeHandle.getConfig()).thenReturn(config); when(treeHandle.acquire()).thenReturn(treeHandle); when(treeHandle.getOEMDomainName()).thenReturn("TESTDOMAIN"); }
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/main/java/jcifs/smb/DirFileEntryEnumIterator1.java
} @SuppressWarnings("resource") @Override protected final FileEntry open() throws CIFSException { final SmbResourceLocator loc = this.getParent().getLocator(); final String unc = loc.getUNCPath(); final String p = loc.getURL().getPath(); if (p.lastIndexOf('/') != p.length() - 1) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.1K bytes - Viewed (0)