- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for getFree (0.12 sec)
-
src/test/java/jcifs/internal/AllocInfoTest.java
} @Test @DisplayName("Should define getFree method") void shouldDefineGetFreeMethod() throws NoSuchMethodException { // Verify method exists with correct signature assertNotNull(AllocInfo.class.getMethod("getFree")); assertEquals(long.class, AllocInfo.class.getMethod("getFree").getReturnType()); } @Test
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/fscc/FileFsSizeInformationTest.java
// Then long expectedFree = free * sectPerAlloc * bytesPerSect; assertEquals(expectedFree, fileFsSizeInfo.getFree()); assertEquals(2097152L, fileFsSizeInfo.getFree()); // 512 * 8 * 512 } @Test @DisplayName("Should handle overflow in capacity calculation")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
// Then long expectedFree = callerFree * sectPerAlloc * bytesPerSect; assertEquals(expectedFree, fileFsFullSizeInfo.getFree()); assertEquals(2097152L, fileFsFullSizeInfo.getFree()); // 512 * 8 * 512 } @Test @DisplayName("Should handle overflow in capacity calculation")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
SmbInfoAllocation info = (SmbInfoAllocation) response.getInfo(); assertEquals(8L * 1000000L * 512L, info.getCapacity()); assertEquals(8L * 500000L * 512L, info.getFree()); } @Test void testReadDataWireFormat_FileFsSizeInformation() throws Exception { // Test reading FS_SIZE_INFO data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
// Verify - all zeros should result in 0 capacity and free assertEquals(0L, smbInfoAllocation.getCapacity()); assertEquals(0L, smbInfoAllocation.getFree()); } @Test @DisplayName("Test getFree with maximum values") void testGetFreeWithMaximumValues() throws SMBProtocolDecodingException { // Prepare test data with maximum int values byte[] buffer = new byte[22];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
} @Test @DisplayName("getTree() acquires and returns same tree instance") void getTree_acquiresAndReturnsTree() { when(cfg.isTraceResourceUsage()).thenReturn(false); stubValidTree(7L, true, true); SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, 123, tree, "//server/share", 0, 0, 0, 0, 0L); SmbTreeHandleImpl t1 = h.getTree(); SmbTreeHandleImpl t2 = h.getTree();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0)