Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 85 for testpipe (1.43 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

            // Initialize ProtwordsFile
            protwordsFile = new ProtwordsFile("test_id", testFile.getAbsolutePath(), new Date());
            protwordsFile.manager(dictionaryManager);
        }
    
        @Override
        public void tearDown() throws Exception {
            if (testFile != null && testFile.exists()) {
                testFile.delete();
            }
            super.tearDown();
        }
    
        private String getTestContent() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            response = new SmbComQueryInformationResponse(mockConfig, maxOffset);
    
            long testTime = 1000000000L;
            setFieldValue(response, "lastWriteTime", testTime);
    
            assertEquals(testTime + maxOffset, response.getCreateTime());
            assertEquals(testTime + maxOffset, response.getLastWriteTime());
            assertEquals(testTime + maxOffset, response.getLastAccessTime());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. 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)
  5. src/test/java/jcifs/SmbResourceTest.java

                // Given
                long testTime = System.currentTimeMillis();
    
                // When/Then
                assertDoesNotThrow(() -> {
                    mockResource.setCreateTime(testTime);
                    mockResource.setLastModified(testTime);
                    mockResource.setLastAccess(testTime);
                }, "Setting individual times should not throw exception");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            // Initialize CharMappingFile
            charMappingFile = new CharMappingFile("test_id", testFile.getAbsolutePath(), new Date());
            charMappingFile.manager(dictionaryManager);
        }
    
        @Override
        public void tearDown() throws Exception {
            if (testFile != null && testFile.exists()) {
                testFile.delete();
            }
            super.tearDown();
        }
    
        // Test getType method
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java

        }
    
        // Test FilePurgeVisitor
        public void test_FilePurgeVisitor() throws IOException {
            // Create a test file
            File testFile = new File(tempDir, "_1/_2/test.png");
            testFile.getParentFile().mkdirs();
            testFile.createNewFile();
            testFile.setLastModified(System.currentTimeMillis() - 2000L);
    
            // Since FilePurgeVisitor is an inner class and we can't directly test it,
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/NetbiosNameTest.java

        @DisplayName("Should handle getNameType() method")
        void testGetNameType() {
            // Given
            int testType = 0x20; // Server service
            when(mockNetbiosName.getNameType()).thenReturn(testType);
    
            // When
            int nameType = mockNetbiosName.getNameType();
    
            // Then
            assertEquals(testType, nameType);
            verify(mockNetbiosName).getNameType();
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  9. 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)
  10. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

        }
    
        @Test
        void testStreamReading() throws IOException {
            // Test stream reading functionality
            Path testFile = tempDir.resolve("test.txt");
            String content = "test content";
            Files.writeString(testFile, content);
    
            Source source = Sources.fromPath(testFile);
            try (InputStream inputStream = source.openStream()) {
                String readContent = new String(inputStream.readAllBytes());
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top