- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 200 for Shares (0.78 sec)
-
src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java
SmbShareInfo share1 = (SmbShareInfo) response.results[0]; assertEquals("SHARE1", share1.getName().trim(), "Share 1 name should be correct."); assertEquals(0, share1.type, "Share 1 raw type should be 0."); assertEquals("Remark 1", share1.remark.trim(), "Share 1 remark should be correct."); SmbShareInfo share2 = (SmbShareInfo) response.results[1];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnumTest.java
// The getEntries method returns FileEntry objects. We can check their names. assertEquals("\\domain\share1", entries[0].getName(), "The name of the first share should be correct."); assertEquals("\\domain\share2", entries[1].getName(), "The name of the second share should be correct."); } /** * Test the getEntries() method when the DfsEnumArray200 is empty.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java
// Register multiple witnesses String reg1 = mockService.registerWitness("\\\\server1\\share1", "192.168.1.100", 1); String reg2 = mockService.registerWitness("\\\\server2\\share2", "192.168.1.101", 1); String reg3 = mockService.registerWitness("\\\\server3\\share3", "192.168.1.102", 1); assertEquals(3, mockService.getRegistrationCount());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/context/BaseContextTest.java
void testGetSmbResourceWithVariousURLs() throws CIFSException { // Test different valid URL formats String[] validUrls = { "smb://server/share/", "smb://server/share/file.txt", "smb://user:pass@server/share/file.txt", "smb://domain;user:pass@server/share/file.txt" }; for (String url : validUrls) { // When SmbResource resource = context.get(url); // Then
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java
@DisplayName("Test getType with different share types") @CsvSource({ "1, " + SmbConstants.TYPE_PRINTER, // Printer share "3, " + SmbConstants.TYPE_NAMED_PIPE, // Named pipe "0, " + SmbConstants.TYPE_SHARE, // Standard share "2, " + SmbConstants.TYPE_SHARE, // Unknown type defaults to share "4, " + SmbConstants.TYPE_SHARE, // Unknown type defaults to shareRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java
/** * Constructs a tree connect AndX request to establish a connection to a shared resource. * * @param ctx the CIFS context containing configuration * @param server the server data containing security information * @param path the UNC path to the shared resource * @param service the service type (e.g., "A:" for disk share, "LPT1:" for printer) * @param andx the next command in the AndX chain, or null */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/HandlerTest.java
// Act - Create various SMB URLs using the handler URL url1 = new URL(null, "smb://host/share", handler); URL url2 = new URL(null, "smb://host:1234/share/file.txt", handler); URL url3 = new URL(null, "smb://user:pass@host/share", handler); // Assert - Verify URL components assertEquals("smb", url1.getProtocol()); assertEquals("host", url1.getHost());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
@ParameterizedTest @CsvSource({ "'\\server', 'server', '', ''", "'\\server\\share', 'server', 'share', ''", "'\\server\\share\\path', 'server', 'share', 'path'", "'\\server\\share\\path\\file.txt', 'server', 'share', 'path\\file.txt'", "'\\server.domain.com\\share\\deep\\path\\structure', 'server.domain.com', 'share', 'deep\\path\\structure'" }) @DisplayName("Should split DFS paths correctly")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComTreeDisconnect.java
* SMB1 COM_TREE_DISCONNECT command implementation. * * This command disconnects from a tree connection (share) on the server. * It releases the tree ID and terminates access to the share. */ public class SmbComTreeDisconnect extends ServerMessageBlock { /** * Constructs a tree disconnect request to close a connection to a shared resource. * * @param config the configuration to use */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
SmbTreeConnection c1 = newConn(); SmbTreeConnection c2 = newConn(); SmbTreeImpl shared = mock(SmbTreeImpl.class); when(shared.acquire(false)).thenReturn(shared); setTree(c1, shared); setTree(c2, shared); assertTrue(c1.isSame(c2)); SmbTreeImpl other = mock(SmbTreeImpl.class); when(other.acquire(false)).thenReturn(other);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0)