- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 276 for tshark (0.17 sec)
-
src/test/java/jcifs/DfsReferralDataTest.java
} @Test @DisplayName("Should get share") void testGetShare() { // Given String share = "testshare"; when(mockReferralData.getShare()).thenReturn(share); // When String result = mockReferralData.getShare(); // Then assertEquals(share, result); verify(mockReferralData).getShare(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
} @Test @DisplayName("Test getPath returns correct formatted path") void testGetPath() { request = new Smb2CreateRequest(mockConfig, "share\\file.txt"); assertEquals("\\share\\file.txt", request.getPath()); request.setPath("newpath\\newfile.txt"); assertEquals("\\newpath\\newfile.txt", request.getPath()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
src/main/java/jcifs/SmbResourceLocator.java
*/ String getURLPath(); /** * Retrieves the share associated with this SMB resource. In * the case of <code>smb://</code>, <code>smb://workgroup/</code>, * and <code>smb://server/</code> URLs which do not specify a share, * <code>null</code> will be returned. * * @return The share component or <code>null</code> if there is no share */ String getShare(); /**
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/internal/witness/WitnessClientTest.java
CompletableFuture<WitnessRegistration> future = client.registerForNotifications("\\\\server\\share", serverAddress, listener); WitnessRegistration registration = future.get(5, TimeUnit.SECONDS); assertNotNull(registration); assertEquals(WitnessRegistrationState.REGISTERED, registration.getState()); assertEquals("\\\\server\\share", registration.getShareName());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
void testCIFSContextInterface() { // Verify interface methods exist assertDoesNotThrow(() -> { mockContext.get("smb://server/share"); mockContext.getPipe("smb://server/share/pipe", 0); mockContext.close(); mockContext.getConfig(); mockContext.getNameServiceClient(); mockContext.getBufferCache();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.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: 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/http/NetworkExplorerTest.java
// Setup minimal mocks when(request.getRequestURI()).thenReturn("/explorer"); when(request.getPathInfo()).thenReturn("/share/"); when(locator.getCanonicalURL()).thenReturn("smb://server/share/"); // Mock directory listing SmbFile file1 = mock(SmbFile.class); when(file1.getName()).thenReturn("document.pdf");
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/main/java/jcifs/smb/SmbTreeConnection.java
SmbTreeImpl uct = smbSession.getSmbTree(share, null).unwrap(SmbTreeImpl.class); SmbTreeImpl ct = connectTree(loc, host, share, trans, uct, dr)) { if (dr != null) { ct.setTreeReferral(dr); if (dr != start) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DfsTest.java
} @Test void testGetReferral_Success() throws IOException, SmbAuthException { String domain = "domain.com"; String root = "share"; String path = "\\folder"; String fullPath = "\\" + domain + "\\" + root + path; // Should be "\domain.com\share\folder" lenient().when(smbTransport.getDfsReferrals(auth, fullPath, 0)).thenReturn(dfsReferral);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceLocatorTest.java
class HappyPath { @Test void testBasicProperties() throws Exception { String url = "smb://server/share/path/file.txt"; DummySmbResourceLocator loc = new DummySmbResourceLocator(url); assertEquals("file.txt", loc.getName()); assertEquals("smb://server/share/path/", loc.getParent()); assertEquals(url, loc.getPath()); // canonicalisation simply removes '.' and '..'
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0)