Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 176 for getfile (0.04 sec)

  1. 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)
  2. 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)
  3. src/main/java/jcifs/smb/SmbFile.java

                        setInfoReq.setFileId(createResp.getFileId());
                        setInfoReq.setFileInformation(new FileRenameInformation2(destPath, replace));
                        sh.send(setInfoReq);
                    } finally {
                        // Always close the file handle - ensure createResp is not null
                        if (createResp != null && createResp.getFileId() != null) {
    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. .github/workflows/CheckBadMerge.groovy

            if (p1Branches.contains("origin/master") && !p2Branches.contains("origin/master") && p2Branches.any { it.startsWith("origin/release") }) {
                List<String> badFiles = filesFromMerge(commit).findAll {gitFile -> MONITORED_PATHS.any { forbiddenPath -> gitFile.startsWith(forbiddenPath)} }
                if (!badFiles.empty) {
                    System.err.println("Found bad files in merge commit $commit, run the listed commands:")
                    badFiles.each {
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Fri Jan 24 10:03:31 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. 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)
  6. docs/iam/access-manager-plugin.go

    	flag.Parse()
    	serveFunc := func() error {
    		return http.ListenAndServe(":8080", nil)
    	}
    
    	if certFile != "" || keyFile != "" {
    		if certFile == "" || keyFile == "" {
    			log.Fatal("Please provide both a key file and a cert file to enable TLS.")
    		}
    		serveFunc = func() error {
    			return http.ListenAndServeTLS(":8080", certFile, keyFile, nil)
    		}
    	}
    
    	http.HandleFunc("/", mainHandler)
    
    	log.Print("Listening on :8080")
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Feb 08 17:15:20 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            // Validate parameter bytes using reflection since fields are private
            assertEquals(getField(cmd, "fid"), SMBUtil.readInt2(buffer, 0));
            assertEquals(getField(cmd, "typeOfLock"), buffer[2]);
            assertEquals(getField(cmd, "newOpLockLevel"), buffer[3]);
            assertEquals(getField(cmd, "timeout"), (long) SMBUtil.readInt4(buffer, 4));
            assertEquals(1, SMBUtil.readInt2(buffer, 8));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            when(mockBasicFileInfo.getLastWriteTime()).thenReturn(TEST_LAST_WRITE_TIME);
            when(mockBasicFileInfo.getLastAccessTime()).thenReturn(TEST_LAST_ACCESS_TIME);
            when(mockBasicFileInfo.getSize()).thenReturn(1024L);
            when(mockBasicFileInfo.getFileInformationLevel()).thenReturn(FileInformation.FILE_BASIC_INFO);
    
            // When & Then
            assertEquals(TEST_ATTRIBUTES, mockBasicFileInfo.getAttributes());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
Back to top