Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 61 for getFree (0.34 seconds)

  1. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/AllocInfoTest.java

            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();
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/AllocInfo.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.smb1;
    
    interface AllocInfo {
        long getCapacity();
    
        long getFree();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 942 bytes
    - Click Count (0)
  4. 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)
         */
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/fscc/FileFsSizeInformation.java

            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;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Decodable#decode(byte[], int, int)
         */
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/AllocInfo.java

         *
         * @return total capacity
         */
        long getCapacity();
    
        /**
         * Gets the free space available.
         *
         * @return free space
         */
        long getFree();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/fscc/SmbInfoAllocation.java

        }
    
        @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)
         */
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  8. 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];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java

            int bytesPerSect;
    
            @Override
            public long getCapacity() {
                return alloc * sectPerAlloc * bytesPerSect;
            }
    
            @Override
            public long getFree() {
                return free * sectPerAlloc * bytesPerSect;
            }
    
            @Override
            public String toString() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  10. 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")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 25.9K bytes
    - Click Count (0)
Back to Top