- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 41 for getHref (0.16 sec)
-
src/test/java/jcifs/smb/HandlerTest.java
// Assert assertEquals("smb", url.getProtocol()); assertEquals(SmbConstants.DEFAULT_PORT, url.getPort(), "Default port applied for root smb URL"); assertNull(url.getRef(), "Ref should remain null for root URL"); } @Test @DisplayName("parseURL: fragment is moved into path and ref cleared") void testParseURL_FragmentMovedToPath() throws MalformedURLException {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
SmbPipeInputStream stream = newStreamWithMinimalStubs(true); // Arrange mocks for available() when(handle.ensureOpen()).thenReturn(fd); when(fd.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(config); when(config.getTransactionBufferSize()).thenReturn(65535);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/SmbFileHandle.java
* */ public interface SmbFileHandle extends AutoCloseable { /** * Returns the tree handle associated with this file handle * * @return the tree */ SmbTreeHandle getTree(); /** * Checks if this file handle is still valid * * @return whether the file descriptor is valid */ boolean isValid(); /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
when(fileHandle.acquire()).thenReturn(fileHandle); when(fileHandle.isValid()).thenReturn(true); when(fileHandle.getTree()).thenReturn(tree); // Initially not open (isStale returns false when handle is null, not true) assertFalse(target.isOpen()); assertFalse(target.isStale());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
assertEquals(20, bytesDecoded); assertEquals(8L * 4096L * 512L, smbInfoAllocation.getCapacity()); assertEquals(8L * 2048L * 512L, smbInfoAllocation.getFree()); } @Test @DisplayName("Should calculate capacity correctly") void testCapacityCalculation() throws SMBProtocolDecodingException { byte[] buffer = new byte[24];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileFsFullSizeInformation.java
return FS_FULL_SIZE_INFO; } @Override public long getCapacity() { return this.alloc * this.sectPerAlloc * this.bytesPerSect; } @Override public long getFree() { return this.free * this.sectPerAlloc * this.bytesPerSect; } /** * {@inheritDoc} * * @see jcifs.Decodable#decode(byte[], int, int) */ @OverrideRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Handler.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
// Prepare SMB2 flow with a given response private void setupSmb2(NotifyResponse resp, byte[] fileId) throws Exception { when(handle.isValid()).thenReturn(true); when(handle.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(mock(Configuration.class)); when(handle.getFileId()).thenReturn(fileId);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/AllocInfo.java
* * @return total capacity */ long getCapacity(); /** * Gets the free space available. * * @return free space */ long getFree();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/Handler.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3K bytes - Viewed (0)