- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for FileInformation (0.33 sec)
-
src/test/java/jcifs/internal/fscc/FileInformationTest.java
void testConstantsAreUnique() { byte[] constants = { FileInformation.FILE_ENDOFFILE_INFO, FileInformation.FILE_BASIC_INFO, FileInformation.FILE_STANDARD_INFO, FileInformation.FILE_INTERNAL_INFO, FileInformation.FILE_RENAME_INFO }; // Check all constants are unique for (int i = 0; i < constants.length; i++) { for (int j = i + 1; j < constants.length; j++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java
// Test valid information levels assertEquals(0x0101, Trans2QueryPathInformation.mapInformationLevel(FileInformation.FILE_BASIC_INFO)); assertEquals(0x0102, Trans2QueryPathInformation.mapInformationLevel(FileInformation.FILE_STANDARD_INFO)); assertEquals(0x0104, Trans2QueryPathInformation.mapInformationLevel(FileInformation.FILE_ENDOFFILE_INFO)); } @Test void testMapInformationLevelWithInvalidLevel() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java
byte[] buffer = new byte[100]; int result = response.readParametersWireFormat(buffer, 0, buffer.length); assertEquals(2, result); } @ParameterizedTest @ValueSource(bytes = { FileInformation.FILE_BASIC_INFO, FileInformation.FILE_STANDARD_INFO, FileInformation.FILE_INTERNAL_INFO })
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
void testGetFileInformationLevel() { assertEquals(FileInformation.FILE_ENDOFFILE_INFO, fileInfo.getFileInformationLevel()); // Test with parameterized constructor FileEndOfFileInformation info = new FileEndOfFileInformation(5000L); assertEquals(FileInformation.FILE_ENDOFFILE_INFO, info.getFileInformationLevel()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
config = new PropertyConfiguration(props); } @Test @DisplayName("Test constructor with FileInformation parameter") void testConstructorWithFileInformation() { // Setup mock FileInformation when(mockFileInfo.getFileInformationLevel()).thenReturn((byte) FileInformation.FILE_BASIC_INFO); // Create instance
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java
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()); assertEquals(TEST_CREATE_TIME, mockBasicFileInfo.getCreateTime());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.dtyp.SecurityDescriptor; import jcifs.internal.fscc.FileFsFullSizeInformation; import jcifs.internal.fscc.FileFsSizeInformation; import jcifs.internal.fscc.FileInformation; import jcifs.internal.fscc.FileInternalInfo; import jcifs.internal.fscc.FileSystemInformation; import jcifs.internal.smb2.ServerMessageBlock2; import jcifs.internal.smb2.ServerMessageBlock2Response;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
import org.mockito.junit.jupiter.MockitoSettings; import org.mockito.quality.Strictness; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.Encodable; import jcifs.internal.fscc.FileInformation; import jcifs.internal.smb2.ServerMessageBlock2; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; /** * Test class for Smb2SetInfoRequest functionality */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
assertNotNull(info); } @Test @DisplayName("Test getFileInformationLevel returns correct value") void testGetFileInformationLevel() { assertEquals(FileInformation.FILE_RENAME_INFO, fileRenameInfo.getFileInformationLevel()); } @Test @DisplayName("Test size calculation with short filename") void testSizeWithShortFilename() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java
fileInternalInfo = new FileInternalInfo(); } @Test @DisplayName("Test getFileInformationLevel returns FILE_INTERNAL_INFO") void testGetFileInformationLevel() { assertEquals(FileInformation.FILE_INTERNAL_INFO, fileInternalInfo.getFileInformationLevel()); } @Test @DisplayName("Test initial indexNumber value is 0") void testInitialIndexNumber() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0)