- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 399 for csharp (0.03 sec)
-
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) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
for (int i = 0; i < opsPerThread; i++) { String share = "share" + (threadId % 3); // Use 3 different shares // Get or create tree SmbTreeImpl tree = session.getSmbTree(share, null); assertNotNull(tree, "Tree should not be null"); // Verify we can acquire the tree
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
when(mockReferral.getPathConsumed()).thenReturn(15); // e.g., "\\\\server\\share".length() when(mockReferral.next()).thenReturn(mockReferral); // Simple loop for the do-while assertDoesNotThrow(() -> dfsImpl.cache(mockContext, "\\\\server\\share\\path", mockReferral)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/JobProcessingExceptionTest.java
} public void test_constructor_withSpecialCharactersInMessage() { // Test constructor with special characters in message final String message = "Job failed with special chars: \n\t\r\"'<>&"; final JobProcessingException exception = new JobProcessingException(message); assertNotNull(exception); assertEquals(message, exception.getMessage()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java
Field passwordField = NtlmPasswordAuthenticator.class.getDeclaredField("password"); passwordField.setAccessible(true); char[] originalPassword = (char[]) passwordField.get(authenticator); char[] clonedPassword = (char[]) passwordField.get(cloned); assertNotSame(originalPassword, clonedPassword, "Cloned password should be a different array instance");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComTreeDisconnect.java
import jcifs.Configuration; import jcifs.internal.smb1.ServerMessageBlock; /** * 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. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java
* limitations under the License. */ package com.google.common.collect.testing; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.testing.SampleElements.Chars; import java.util.List; import org.jspecify.annotations.NullMarked; /** * Generates {@code List<Character>} instances for test suites. * * @author Kevin Bourrillion * @author Louis Wasserman */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
when(tree.acquire(false)).thenReturn(tree); when(tree.getTreeType()).thenReturn(7); when(tree.getShare()).thenReturn("SHARE"); setTree(c, tree); assertEquals(7, c.getTreeType()); assertEquals("SHARE", c.getConnectedShare()); // try-with-resources closes the acquired tree verify(tree, atLeastOnce()).close(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
lenient().when(parent.getLocator()).thenReturn(locator); lenient().when(locator.getUNCPath()).thenReturn("\\\\SERVER\\Share\\dir\\"); // ends with \\ // Create URL with registered handler URL smbUrl = new URL("smb://server/share/dir/"); lenient().when(locator.getURL()).thenReturn(smbUrl); } // Helper: reflectively set private/protected field on an object
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.3K bytes - Viewed (0)