- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for SmbResource (0.05 sec)
-
src/main/java/jcifs/SmbResource.java
*/ void copyTo(SmbResource dest) throws CIFSException; /** * Changes the name of the file this <code>SmbResource</code> represents to the name * designated by the <code>SmbResource</code> argument. * <br> * <i>Remember: <code>SmbResource</code>s are immutable and therefore * the path associated with this <code>SmbResource</code> object will not
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1) -
src/test/java/jcifs/SmbResourceTest.java
class InterfaceContractTests { @Test @DisplayName("SmbResource should extend AutoCloseable") void testInterfaceInheritance() { // Then assertTrue(AutoCloseable.class.isAssignableFrom(SmbResource.class), "SmbResource should extend AutoCloseable"); } @Test @DisplayName("SmbResource should have all required methods")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
import jcifs.ResourceFilter; import jcifs.SmbResource; @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class FileEntryAdapterIteratorTest { @Mock private CloseableIterator<FileEntry> delegate; @Mock private ResourceFilter filter; @Mock private SmbResource parent; @Mock private SmbResource resource; @Mock
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
try (CloseableIterator<SmbResource> it = doEnum(root, wildcard, searchAttributes, fnf == null ? null : new ResourceNameFilterWrapper(fnf), ff == null ? null : new ResourceFilterWrapper(ff))) { final List<SmbFile> list = new ArrayList<>(); while (it.hasNext()) { try (SmbResource n = it.next()) { if (n instanceof SmbFile) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java
@Mock private SmbResource mockParent; @Mock private CloseableIterator<FileEntry> mockDelegate; @Mock private ResourceFilter mockFilter; @Mock private FileEntry mockFileEntry1; @Mock private FileEntry mockFileEntry2; @Mock private FileEntry mockFileEntry3; @Mock private SmbResource mockResource1; @Mock
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/context/BaseContextTest.java
verify(configWithCreds).getDefaultPassword(); verify(configWithCreds).getDefaultDomain(); } @Test @DisplayName("get method should create SmbResource from URL") void testGetSmbResource() throws CIFSException { // When SmbResource resource = context.get("smb://server/share/file.txt"); // Then assertNotNull(resource, "Should create SMB resource");
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/NetServerEnumIteratorTest.java
import org.mockito.junit.jupiter.MockitoSettings; import org.mockito.quality.Strictness; import jcifs.CIFSException; import jcifs.Configuration; import jcifs.ResourceNameFilter; import jcifs.SmbConstants; import jcifs.SmbResource; import jcifs.SmbResourceLocator; /** * Unit tests for NetServerEnumIterator. * Tests focus on constructor validation and basic iterator contract. */ @ExtendWith(MockitoExtension.class)
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/smb/SmbEnumerationUtilTest.java
Object wrapper = newPrivateInner("ResourceFilterWrapper", new Class<?>[] { SmbFileFilter.class }, delegate); SmbResource notAFile = mock(SmbResource.class); // Act boolean result = (boolean) invokePrivate(wrapper, "accept", new Class<?>[] { SmbResource.class }, notAFile); // Assert assertFalse(result); verify(delegate, never()).accept(any());
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/SmbConstants.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
import org.mockito.ArgumentCaptor; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSException; import jcifs.ResourceNameFilter; import jcifs.SmbResource; @ExtendWith(MockitoExtension.class) class DirFileEntryEnumIteratorBaseTest { // Simple FileEntry implementation used for tests private static FileEntry entry(String name) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0)