- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 186 for getfile (0.41 sec)
-
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) -
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/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) -
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.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) -
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) -
compat/maven-compat/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java
File file = new File(getRepository().getBasedir(), path); LocalArtifactResult result = new LocalArtifactResult(request); if (file.isFile()) { result.setFile(file); result.setAvailable(true); } return result; } @Override public void add(RepositorySystemSession session, LocalArtifactRegistration request) {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
secondInstance.decode(encodedBuffer, 0, encodedBuffer.length); // Verify both instances have same values assertEquals(firstInstance.getSize(), secondInstance.getSize()); assertEquals(expectedEndOfFile, secondInstance.getSize()); } @Test @DisplayName("Test toString method") void testToString() throws SMBProtocolDecodingException { // Setup test data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
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)