- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getCapacity (0.66 sec)
-
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
void testGettersHappyPath() { when(mockAllocInfo.getCapacity()).thenReturn(1000L); when(mockAllocInfo.getFree()).thenReturn(400L); assertEquals(1000L, mockAllocInfo.getCapacity(), "capacity should match stubbed value"); assertEquals(400L, mockAllocInfo.getFree(), "free space should match stubbed value"); verify(mockAllocInfo, times(1)).getCapacity(); verify(mockAllocInfo, times(1)).getFree(); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileFsFullSizeInformation.java
*/ @Override public byte getFileSystemInformationClass() { 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; } /**Registered: 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/internal/fscc/FileFsSizeInformation.java
*/ @Override public byte getFileSystemInformationClass() { return FS_SIZE_INFO; } @Override public long getCapacity() { return this.alloc * this.sectPerAlloc * this.bytesPerSect; } @Override public long getFree() { return this.free * this.sectPerAlloc * this.bytesPerSect; } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/AllocInfo.java
* License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.smb1.smb1; interface AllocInfo { long getCapacity(); long getFree();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 942 bytes - Viewed (0) -
src/main/java/jcifs/internal/AllocInfo.java
* * @author mbechler */ public interface AllocInfo extends FileSystemInformation { /** * Gets the total capacity of the allocation. * * @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/internal/fscc/SmbInfoAllocation.java
*/ @Override public byte getFileSystemInformationClass() { return FileSystemInformation.SMB_INFO_ALLOCATION; } @Override public long getCapacity() { return this.alloc * this.sectPerAlloc * this.bytesPerSect; } @Override public long getFree() { return this.free * this.sectPerAlloc * this.bytesPerSect; } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java
class SmbInfoAllocation implements AllocInfo { long alloc; // Also handles SmbQueryFSSizeInfo long free; int sectPerAlloc; int bytesPerSect; @Override public long getCapacity() { return alloc * sectPerAlloc * bytesPerSect; } @Override public long getFree() { return free * sectPerAlloc * bytesPerSect; } @OverrideRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.1K bytes - Viewed (0)