Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testGetPipe (0.04 sec)

  1. src/test/java/jcifs/context/CIFSContextWrapperTest.java

            });
            assertTrue(thrown.getMessage().contains("Invalid URL"));
            assertTrue(thrown.getCause() instanceof MalformedURLException);
        }
    
        @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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbPipeHandleTest.java

            when(smbPipeHandle.getOutput()).thenReturn(mockOutputStream);
        }
    
        /**
         * Tests that the getter for the underlying pipe resource returns the correct instance.
         */
        @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.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/CIFSContextTest.java

            // Then
            assertEquals(mockResource, resource);
            verify(mockContext).get(url);
        }
    
        @Test
        @DisplayName("Should get SmbPipeResource")
        void testGetPipe() throws CIFSException {
            // Given
            String url = "smb://server/share/pipe";
            int pipeType = 1;
            SmbPipeResource mockPipe = mock(SmbPipeResource.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
Back to top