- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for SmbPipeHandle (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/SmbPipeHandleTest.java
// Create a mock implementation of the SmbPipeHandle interface smbPipeHandle = mock(SmbPipeHandle.class); // Define behavior for the mock handle when(smbPipeHandle.getPipe()).thenReturn(mockPipeResource); when(smbPipeHandle.getInput()).thenReturn(mockInputStream); when(smbPipeHandle.getOutput()).thenReturn(mockOutputStream); } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbNamedPipeTest.java
// Act SmbPipeHandle handle = pipe.openPipe(); // Assert: observable handle behavior without network I/O assertNotNull(handle, "Handle must not be null"); assertSame(pipe, handle.getPipe(), "Handle should reference originating pipe"); assertSame(handle, handle.unwrap(SmbPipeHandle.class), "unwrap should return same instance for interface type"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
// Happy path: unwrap to interface and concrete type SmbPipeHandle unwrapped1 = handle.unwrap(SmbPipeHandle.class); SmbPipeHandleImpl unwrapped2 = handle.unwrap(SmbPipeHandleImpl.class); assertSame(handle, unwrapped1); assertSame(handle, unwrapped2); // Invalid type class OtherPipeHandle implements SmbPipeHandle { @Override public SmbPipeResource getPipe() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 16.7K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
this.uncPath = this.pipe.getUncPath(); } /** * {@inheritDoc} * * @see jcifs.SmbPipeHandle#unwrap(java.lang.Class) */ @SuppressWarnings("unchecked") @Override public <T extends SmbPipeHandle> T unwrap(final Class<T> type) { if (type.isAssignableFrom(this.getClass())) { return (T) this; }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 10.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbNamedPipe.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.smb; import java.net.MalformedURLException; import jcifs.CIFSContext; import jcifs.SmbPipeHandle; import jcifs.SmbPipeResource; import jcifs.internal.smb1.com.SmbComNTCreateAndX; import jcifs.internal.smb1.com.SmbComNTCreateAndXResponse; /** * This class will allow a Java program to read and write data to Named
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.2K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.BufferCache; import jcifs.CIFSContext; import jcifs.CIFSException; import jcifs.SmbPipeHandle; import jcifs.SmbPipeResource; import jcifs.SmbResourceLocator; import jcifs.smb.SmbNamedPipe; import jcifs.smb.SmbPipeHandleInternal; import jcifs.util.Encdec; /** * Test class for DcerpcPipeHandle */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21K bytes - Click Count (0)