- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getCapacity (0.07 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.1K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 942 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
assertEquals(1000, info.alloc); assertEquals(500, info.free); assertEquals(100, info.sectPerAlloc); assertEquals(512, info.bytesPerSect); assertEquals(1000L * 100 * 512, info.getCapacity(), "Capacity calculation should be correct"); assertEquals(500L * 100 * 512, info.getFree(), "Free space calculation should be correct"); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 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; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.1K bytes - Viewed (0)