Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for getPipe (0.78 sec)

  1. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

        void testGetTypeWithDifferentShareTypes(int inputType, int expectedType) {
            SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, inputType, TEST_REMARK);
            assertEquals(expectedType, info.getType());
        }
    
        @Test
        @DisplayName("Test getType with hidden flag")
        void testGetTypeWithHiddenFlag() {
            // Hidden flag (0x80000000) should be masked out
            int hiddenPrinterType = 0x80000001; // Hidden printer
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            secondInstance.decode(encodedBuffer, 0, encodedBuffer.length);
    
            // Verify both instances have same values
            assertEquals(firstInstance.getSize(), secondInstance.getSize());
            assertEquals(expectedEndOfFile, secondInstance.getSize());
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() throws SMBProtocolDecodingException {
            // Setup test data
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

        }
    
        @Test
        public void testMultipleGetFile() throws IOException {
            // Calling getFile() multiple times should return the same file
            ContentOutputStream cos = new ContentOutputStream(5, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2, 3, 4, 5 });
            File file1 = cos.getFile();
            File file2 = cos.getFile();
            assertEquals(file1.getAbsolutePath(), file2.getAbsolutePath());
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Wed Nov 12 14:01:04 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/MsrpcDfsRootEnumTest.java

                assertEquals(entries1[i].getName(), entries2[i].getName());
                assertEquals(entries2[i].getName(), entries3[i].getName());
                assertEquals(entries1[i].getType(), entries2[i].getType());
                assertEquals(entries2[i].getType(), entries3[i].getType());
            }
        }
    
        @Test
        @DisplayName("Verify proper inheritance and interface implementation")
        void testInheritance() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

            assertEquals(int.class, ServerData.class.getDeclaredField("sflags2").getType());
            assertEquals(int.class, ServerData.class.getDeclaredField("smaxMpxCount").getType());
            assertEquals(int.class, ServerData.class.getDeclaredField("maxBufferSize").getType());
            assertEquals(int.class, ServerData.class.getDeclaredField("sessKey").getType());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

        }
    
        @Test
        void testGetSizeDefault() {
            // Test default file size value
            response = new SmbComQueryInformationResponse(mockConfig, 0L);
            assertEquals(0, response.getSize());
        }
    
        @Test
        void testTimeConversionMethods() {
            // Test time conversion methods with timezone offset
            long serverTimeZoneOffset = 3600000L; // 1 hour
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbConstants.java

         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a server.
         */
        int TYPE_SERVER = 0x04;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a share.
         */
        int TYPE_SHARE = 0x08;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top