- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,523 for fileId (0.03 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
Field commandField = ServerMessageBlock2.class.getDeclaredField("command"); commandField.setAccessible(true); int command = (int) commandField.get(request); assertEquals(0x0007, command); // SMB2_FLUSH value // Verify file ID is set Field fileIdField = Smb2FlushRequest.class.getDeclaredField("fileId"); fileIdField.setAccessible(true);
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/smb2/ioctl/Smb2IoctlResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java
class SpecialValueConstants { @Test @DisplayName("Unspecified FileId should be 16 bytes of 0xFF") void testUnspecifiedFileId() { assertNotNull(Smb2Constants.UNSPECIFIED_FILEID, "Unspecified FileId should not be null"); assertEquals(16, Smb2Constants.UNSPECIFIED_FILEID.length, "Unspecified FileId must be exactly 16 bytes"); // Verify all bytes are 0xFF
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
assertEquals((short) 0x0011, request.getCommand()); // Verify that default file ID is set byte[] expectedFileId = Smb2Constants.UNSPECIFIED_FILEID; Field fileIdField; try { fileIdField = Smb2SetInfoRequest.class.getDeclaredField("fileId"); fileIdField.setAccessible(true); byte[] actualFileId = (byte[]) fileIdField.get(request);
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/smb2/info/Smb2QueryInfoRequestTest.java
assertEquals((short) 0x0010, request.getCommand()); // Verify that default file ID is set byte[] expectedFileId = Smb2Constants.UNSPECIFIED_FILEID; Field fileIdField; try { fileIdField = Smb2QueryInfoRequest.class.getDeclaredField("fileId"); fileIdField.setAccessible(true); byte[] actualFileId = (byte[]) fileIdField.get(request);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
when(cfg.isTraceResourceUsage()).thenReturn(false); stubValidTree(5L, true, true); byte[] fileId = new byte[] { 0x0A, 0x0B }; SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, fileId, tree, "//server/share/path", 0x1, 0x2, 0x3, 0x4, 123L); h.close(777L); // Verify SMB2 close path
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
// Test with special characters in fileName String specialFileName = "file!@#$%^&*()_+-=[]{}|;':\",./<>?.txt"; Smb2CloseResponse specialNameResponse = new Smb2CloseResponse(mockConfig, testFileId, specialFileName); assertEquals(specialFileName, specialNameResponse.getFileName()); // Test with different fileId patterns byte[] zeroFileId = new byte[16];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
private void setupSmb2(NotifyResponse resp, byte[] fileId) throws Exception { when(handle.isValid()).thenReturn(true); when(handle.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(mock(Configuration.class)); when(handle.getFileId()).thenReturn(fileId);
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/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java
*/ public static final int FILE_OPEN_IF = 0x3; /** * If file exists, overwrite it. Otherwise fail */ public static final int FILE_OVERWRITE = 0x4; /** * If file exists, overwrite it. Otherwise create the file */ public static final int FILE_OVERWRITE_IF = 0x5; /** * File being created or opened must be a directory
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 22.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE); byte[] newFileId = new byte[16]; Arrays.fill(newFileId, (byte) 0x55); request.setFileId(newFileId); // FileId is set internally assertNotNull(request); } @Test @DisplayName("Test createResponse method") void testCreateResponse() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0)