- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 54 for getTree (0.03 sec)
- 
				
				docs/smb3-features/04-directory-leasing-design.mdrequest.setWatchTree(false); // Non-recursive for now Smb2ChangeNotifyResponse response = (Smb2ChangeNotifyResponse) handle.directoryFile.getTree().send(request); if (response.isSuccess()) { processChangeNotification(handle, response); } Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0)
- 
				
				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()); } @TestRegistered: 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/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/smb1/smb1/AllocInfoTest.javawhen(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/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.javaSmbInfoAllocation 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 dataRegistered: 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/smb1/smb1/Trans2QueryFSInformationResponseTest.javaassertEquals(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"); } /** * Tests the readDataWireFormat method with the SMB_QUERY_FS_SIZE_INFO information level. */ @Test 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/test/java/jcifs/internal/fscc/FileSystemInformationTest.javaassertEquals(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/test/java/jcifs/smb/SmbTreeConnectionTest.javawhen(shared.acquire(false)).thenReturn(shared); setTree(c1, shared); setTree(c2, shared); assertTrue(c1.isSame(c2)); SmbTreeImpl other = mock(SmbTreeImpl.class); when(other.acquire(false)).thenReturn(other); setTree(c2, other); assertFalse(c1.isSame(c2)); } @Test Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0)