- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 179 for wipe (1.45 sec)
-
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
@Mock SmbTreeHandleImpl tree; @Mock SmbNamedPipe pipe; @Mock SmbFileHandleImpl fileHandle; private SmbPipeOutputStream newStream() throws CIFSException { // Arrange common constructor collaborators to avoid touching network/state when(handle.getPipe()).thenReturn(pipe); when(tree.isSMB2()).thenReturn(true);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java
/** * Share type constant for disk shares (file shares). */ public static final byte SMB2_SHARE_TYPE_DISK = 0x1; /** * Share type constant for named pipe shares (IPC). */ public static final byte SMB2_SHARE_TYPE_PIPE = 0x2; /** * Share type constant for printer shares. */ public static final byte SMB2_SHARE_TYPE_PRINT = 0x3; /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
// Set zero values - for SMB times, 0 in wire format represents 0 in Java time SMBUtil.writeInt4(0, buffer, 0); // nextEntryOffset SMBUtil.writeInt4(0, buffer, 4); // fileIndex SMBUtil.writeInt8(0, buffer, 8); // creationTime - raw 0 in wire format SMBUtil.writeInt8(0, buffer, 16); // lastAccessTime - raw 0 in wire formatRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
} @Test void testGetPipe() throws CIFSException, MalformedURLException { // Test getPipe(String url, int pipeType) method String url = "smb://server/IPC$/pipeName"; // Corrected URL for named pipe int pipeType = 1; SmbPipeResource mockSmbPipeResource = mock(SmbNamedPipe.class); // Similar to testGetSmbResource, we cannot directly mock `new SmbNamedPipe()`.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
@Test @DisplayName("Should read empty bytes from wire format") void testReadBytesWireFormat() { // Given request = new Smb2NegotiateRequest(mockConfig, 0); byte[] buffer = new byte[256]; // When int bytesRead = request.readBytesWireFormat(buffer, 0); // Then - This is a request, so it doesn't read from wire assertEquals(0, bytesRead); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java
* or * proto:[key1=val1,key2=val2] * * If a key is absent it is assumed to be 'endpoint'. Thus the * following are equivalent: * proto:\\ts0.win.net[endpoint=\pipe\srvsvc] * proto:ts0.win.net[\pipe\srvsvc] * * If the server is absent it is set to "127.0.0.1" */ /** * Parses a DCERPC binding string into a DcerpcBinding object * @param str the binding string to parseRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
// size8 method aligns to 8-byte boundary int alignedSize = (expectedSize + 7) & ~7; assertEquals(alignedSize, size); } @Test @DisplayName("Should write correct bytes to wire format") void testWriteBytesWireFormat() { // Given Configuration mockConfig = mock(Configuration.class); Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java
assertEquals(SmbFile.TYPE_PRINTER, printerShare.getType()); // Test for TYPE_NAMED_PIPE SmbShareInfo pipeShare = new SmbShareInfo("PIPE", 3, "A named pipe"); assertEquals(SmbFile.TYPE_NAMED_PIPE, pipeShare.getType()); // Test for TYPE_SHARE (disk share) SmbShareInfo diskShare = new SmbShareInfo("DISK", 0, "A disk share");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
* Unit test for {@link Trans2QueryFSInformation}. The class contains mostly * trivial wire-format helpers and a custom {@code toString()} implementation. * All tests are pure unit tests – no network or file system access is * required. */ class Trans2QueryFSInformationTest { /** Small helper to create a byte buffer larger than the maximum expected * wire format so that we can observe only the bytes written by a method. */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequest.java
/** * Function code to peek at named pipe data without removing it */ public static final int FSCTL_PIPE_PEEK = 0x0011400C; /** * Function code to wait for a named pipe to become available */ public static final int FSCTL_PIPE_WAIT = 0x00110018; /** * Function code to transceive data on a named pipe */ public static final int FSCTL_PIPE_TRANSCEIVE = 0x0011C017;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9.4K bytes - Viewed (0)