- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 289 for getPipe (0.04 sec)
-
src/test/java/jcifs/context/BaseContextTest.java
assertNotNull(resource, "Should create resource for URL: " + url); } } @Test @DisplayName("getPipe method should create SmbPipeResource") void testGetPipeResource() throws CIFSException { // When SmbPipeResource pipe = context.getPipe("smb://server/IPC$/pipe", 0); // Then assertNotNull(pipe, "Should create pipe resource");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
assertNotNull(cifsContextWrapper.getPipe(url, pipeType)); } @Test void testGetPipe_MalformedURLException() { // Test getPipe(String url, int pipeType) with a malformed URL String malformedUrl = "invalid-pipe-url"; int pipeType = 1; CIFSException thrown = assertThrows(CIFSException.class, () -> { cifsContextWrapper.getPipe(malformedUrl, pipeType); });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbPipeHandleTest.java
*/ @Test public void testGetPipe() { assertEquals(mockPipeResource, smbPipeHandle.getPipe(), "getPipe() should return the underlying pipe resource."); } /** * Tests that the getter for the input stream returns the correct stream. * @throws CIFSException if an error occurs while getting the stream. */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
int pipeType = 1; SmbPipeResource mockPipe = mock(SmbPipeResource.class); when(mockContext.getPipe(url, pipeType)).thenReturn(mockPipe); // When SmbPipeResource pipe = mockContext.getPipe(url, pipeType); // Then assertEquals(mockPipe, pipe); verify(mockContext).getPipe(url, pipeType); } @Test @DisplayName("Should close context")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
@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); when(tree.getSendBufferSize()).thenReturn(4096); // Act return new SmbPipeOutputStream(handle, tree); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
return (T) this; } throw new ClassCastException(); } /** * {@inheritDoc} * * @see jcifs.SmbPipeHandle#getPipe() */ @Override public SmbNamedPipe getPipe() { return this.pipe; } @Override public SmbTreeHandleImpl ensureTreeConnected() throws CIFSException { if (this.treeHandle == null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeOutputStream.java
/** * @param handle * @throws SmbException */ SmbPipeOutputStream(final SmbPipeHandleImpl handle, final SmbTreeHandleImpl th) throws CIFSException { super(handle.getPipe(), th, null, 0, 0, 0); this.handle = handle; } /** * {@inheritDoc} * * @see jcifs.smb.SmbFileOutputStream#isOpen() */ @Override public boolean isOpen() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (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"); } @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/context/CIFSContextWrapper.java
throw new CIFSException("Invalid URL " + url, e); } } /** * * {@inheritDoc} * * @see jcifs.CIFSContext#getPipe(java.lang.String, int) */ @Override public SmbPipeResource getPipe(final String url, final int pipeType) throws CIFSException { try { return new SmbNamedPipe(url, pipeType, this); } catch (final MalformedURLException e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
}); } @Test @DisplayName("getPipeType and getPipe delegate to SmbNamedPipe") void pipeType_and_getPipe() { when(pipe.getPipeType()).thenReturn(12345); SmbPipeHandleImpl handle = new SmbPipeHandleImpl(pipe); assertEquals(12345, handle.getPipeType()); assertSame(pipe, handle.getPipe()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0)