Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 446 for spare (0.04 sec)

  1. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            lenient().when(parent.getLocator()).thenReturn(locator);
            lenient().when(locator.getUNCPath()).thenReturn("\\\\SERVER\\Share\\dir\\"); // ends with \\
    
            // Create URL with registered handler
            URL smbUrl = new URL("smb://server/share/dir/");
            lenient().when(locator.getURL()).thenReturn(smbUrl);
        }
    
        // Helper: reflectively set private/protected field on an object
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

                    "1000, 500, 8, 4096", // 4K sectors
                    "1000, 500, 16, 4096", // Large sectors and allocation
                    "1000, 0, 8, 512", // No free space
                    "1000, 1000, 8, 512" // All space free
            })
            void shouldDecodeVariousSectorConfigurations(long alloc, long free, int sectPerAlloc, int bytesPerSect)
                    throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFile.java

        }
    
        /**
         * Retrieves the share associated with this SMB resource. In
         * the case of <code>smb://</code>, <code>smb://workgroup/</code>,
         * and <code>smb://server/</code> URLs which do not specify a share,
         * <code>null</code> will be returned.
         *
         * @return The share component or <code>null</code> if there is no share
         */
        public String getShare() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java

        class HappyPath {
            @Test
            void acceptWithMockedFile() throws Exception {
                SmbFile mockFile = mock(SmbFile.class);
                when(mockFile.getPath()).thenReturn("/share/file.txt");
                assertTrue(ALWAYSACTIVE.accept(mockFile));
            }
        }
    
        @Nested
        @DisplayName("Invalid input – null file handling")
        class InvalidPath {
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbSession.java

            connectionState = 0;
        }
    
        synchronized SmbTree getSmbTree(String share, final String service) {
            SmbTree t;
    
            if (share == null) {
                share = "IPC$";
            }
            for (final Enumeration e = trees.elements(); e.hasMoreElements();) {
                t = (SmbTree) e.nextElement();
                if (t.matches(share, service)) {
                    return t;
                }
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/DfsReferralData.java

        /**
         * Get the domain this referral is for
         *
         * @return the domain this referral is for
         */
        String getDomain();
    
        /**
         * Get the share this referral points to
         *
         * @return the share this referral points to
         */
        String getShare();
    
        /**
         * Get the number of characters from the UNC path that were consumed by this referral
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. cmd/metrics.go

    		)
    
    		// Total available space in the disk
    		ch <- prometheus.MustNewConstMetric(
    			prometheus.NewDesc(
    				prometheus.BuildFQName(diskNamespace, "storage", "available"),
    				"Total available space left on the drive",
    				[]string{"disk"}, nil),
    			prometheus.GaugeValue,
    			float64(disk.AvailableSpace),
    			disk.DrivePath,
    		)
    
    		// Total storage space of the disk
    		ch <- prometheus.MustNewConstMetric(
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. 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
        void testReadDataWireFormat_SmbQueryFSSizeInfo() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/EncodableTest.java

        void encodeCopiesAndReportsSize(byte[] src, int off, int len, int dstIndex) {
            Encodable enc = new ByteEncodable(src, off, len);
    
            // Destination has guard space to verify non-overwritten regions.
            byte[] dst = new byte[dstIndex + len + 5];
            Arrays.fill(dst, (byte) 0x55);
    
            // Act
            int written = enc.encode(dst, dstIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnumTest.java

            // The getEntries method returns FileEntry objects. We can check their names.
            assertEquals("\\domain\share1", entries[0].getName(), "The name of the first share should be correct.");
            assertEquals("\\domain\share2", entries[1].getName(), "The name of the second share should be correct.");
        }
    
        /**
         * Test the getEntries() method when the DfsEnumArray200 is empty.
         * Verifies that an empty array is returned.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.5K bytes
    - Viewed (0)
Back to top