Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for getFree (0.56 sec)

  1. 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();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  3. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  4. 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();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 942 bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

            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");
        }
    
        /**
         * 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)
  6. src/main/java/jcifs/internal/AllocInfo.java

         *
         * @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)
  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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  8. 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() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataResolutionResult.java

            } else if (requestType.equals(MetadataResolutionRequestTypeEnum.versionedGraph)) {
                return new MetadataGraph(getTree(), true, false);
            } else if (requestType.equals(MetadataResolutionRequestTypeEnum.scopedGraph)) {
                return new MetadataGraph(getTree(), true, true);
            }
            return null;
        }
        // ----------------------------------------------------------------------------
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbFileHandleTest.java

        }
    
        /**
         * Test that getTree() returns the correct SmbTreeHandle.
         */
        @Test
        void testGetTree() {
            when(smbFileHandle.getTree()).thenReturn(smbTreeHandle);
            SmbTreeHandle result = smbFileHandle.getTree();
            assertEquals(smbTreeHandle, result, "getTree should return the mocked SmbTreeHandle.");
            verify(smbFileHandle, times(1)).getTree();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top