- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 519 for spare (0.02 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\share")); // Test forward slashes assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "//server/share")); // Test with spaces assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\my share\\file.txt")); // Test with special characters
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java
// Test different share types and their transformations // Type 0 (disk share) -> TYPE_SHARE (8) srvsvc.ShareInfo1 diskShare = new srvsvc.ShareInfo1(); diskShare.netname = "DiskShare"; diskShare.type = 0; diskShare.remark = "Disk share"; // Type 1 (printer share) -> TYPE_PRINTER (4)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
void testGetShare() { // Act & Assert assertEquals("share", smbFile.getShare()); } @Test void testGetUncPath() { // Arrange doReturn("\\localhost\share\file.txt").when(smbFile).getUncPath(); // Act & Assert assertEquals("\\localhost\share\file.txt", smbFile.getUncPath()); } } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/AllocInfo.java
*/ package jcifs.internal; import jcifs.internal.fscc.FileSystemInformation; /** * Interface for file system allocation information providing capacity and free space details. * Used in SMB protocol operations to query disk space information from remote SMB shares. * * @author mbechler */ public interface AllocInfo extends FileSystemInformation { /** * Gets the total capacity of the allocation.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
@ParameterizedTest @DisplayName("Should handle various capacity and free space values") @CsvSource({ "0, 0", "1024, 512", "1048576, 524288", "1073741824, 536870912", "9223372036854775807, 4611686018427387903", // Long.MAX_VALUE and half "-1, -1", // Negative values (edge case) "100, 200" // Free space greater than capacity (edge case) })
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/TreeConnectResponseTest.java
@Test @DisplayName("Should handle share type") void testShareType() throws Exception { // Test DISK share type setPrivateField(response, "shareType", Smb2TreeConnectResponse.SMB2_SHARE_TYPE_DISK); assertEquals(Smb2TreeConnectResponse.SMB2_SHARE_TYPE_DISK, response.getShareType(), "Should handle DISK share type"); // Test PIPE share type
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
private final List<StackTraceElement[]> releases; private DfsReferralData treeReferral; SmbTreeImpl(final SmbSessionImpl session, final String share, final String service) { this.session = session.acquire(); this.share = share.toUpperCase(); if (service != null && !service.startsWith("??")) { this.service = service; } this.service0 = this.service;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TestLockingTest.java
t1.url = "smb://server1/share/file.txt"; t2.numThreads = 5; t2.url = "smb://server2/share/file.txt"; // Verify independence assertEquals(2, t1.numThreads, "t1 should have its own numThreads value"); assertEquals(5, t2.numThreads, "t2 should have its own numThreads value"); assertEquals("smb://server1/share/file.txt", t1.url, "t1 should have its own URL");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/net/SmbShareInfo.java
*/ public class SmbShareInfo implements FileEntry { /** * The network name of the share. */ protected String netName; /** * The type of the share (e.g., disk, printer, IPC). */ protected int type; /** * The optional comment or description for the share. */ protected String remark; /** * Default constructor for SmbShareInfo. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableMap.java
/** * Closed addressing tends to perform well even with high load factors. Being conservative here * ensures that the table is still likely to be relatively sparse (hence it misses fast) while * saving space. */ @VisibleForTesting static final double MAX_LOAD_FACTOR = 1.2; /** * Maximum allowed false positive probability of detecting a hash flooding attack given random * input. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 15.8K bytes - Viewed (0)