Search Options

Results per page
Sort
Preferred Languages
Advance

Results 371 - 380 of 1,330 for files (0.02 sec)

  1. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

                    .thenAnswer(inv -> inv.getArgument(1));
    
            int n = handle.sendrecv(new byte[10], 0, 0, new byte[20], 100);
            assertEquals(0, n, "Default response length is 0 unless protocol fills it");
        }
    
        @Test
        @DisplayName("sendrecv uses CallNamedPipe when PIPE_TYPE_CALL is set")
        void sendrecv_call_branch() throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            // Test with normal path
            request = new Smb2CreateRequest(mockConfig, "test\\file.txt");
            assertNotNull(request);
            assertEquals("\\test\\file.txt", request.getPath());
    
            // Test with leading backslash
            request = new Smb2CreateRequest(mockConfig, "\\test\\file2.txt");
            assertEquals("\\test\\file2.txt", request.getPath());
    
            // Test with empty path
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/s3/S3ClientTest.java

                    .object("file1.txt")
                    .stream(new ByteArrayInputStream("file1".getBytes()), 5, -1)
                    .contentType("application/octet-stream")
                    .build());
            minioClient.putObject(PutObjectArgs.builder()
                    .bucket(bucketName)
                    .object("dir1/file2.txt")
                    .stream(new ByteArrayInputStream("file2".getBytes()), 5, -1)
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 07:57:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            System.arraycopy(buffer, 14, encodedName, 0, nameBytes.length);
            assertArrayEquals(nameBytes, encodedName);
        }
    
        @Test
        @DisplayName("Test encode fills buffer correctly at various offsets")
        void testEncodeAtVariousOffsets() {
            String pipeName = "OffsetTest";
            long timeout = 2500L;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            // 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());
            assertTrue(file1.exists());
            cos.close();
        }
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Wed Nov 12 14:01:04 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            assertTrue(children.stream().anyMatch(f -> "file1.txt".equals(f.getName())));
            assertTrue(children.stream().anyMatch(f -> "file2.txt".equals(f.getName())));
            assertTrue(children.stream().anyMatch(f -> "dir1".equals(f.getName())));
        }
    
        @Test
        public void testMarkComplete() {
            entry.updateChild("file1.txt", 1024L, 1000L, false, 0x20, 500L, 800L);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

     * @param <K> the type of keys used by the maps under test
     * @param <V> the type of mapped values used the maps under test
     * @author George van den Driessche
     */
    // TODO: Descriptive assertion messages, with hints as to probable fixes.
    // TODO: Add another constructor parameter indicating whether the class under test is ordered, and
    // check the order if so.
    // TODO: Refactor to share code with SetTestBuilder etc.
    @GwtCompatible
    @NullMarked
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/http/NetworkExplorerTest.java

            // Mock directory listing
            SmbFile file1 = mock(SmbFile.class);
            when(file1.getName()).thenReturn("document.pdf");
            when(file1.isDirectory()).thenReturn(false);
            when(file1.length()).thenReturn(2048L);
            when(file1.lastModified()).thenReturn(System.currentTimeMillis());
    
            SmbFile dir1 = mock(SmbFile.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/StringConversionUtil.java

                    return new SimpleDateFormat(pattern).format(value);
                }
                return value.toString();
            }
            return null;
        }
    
        /**
         * Fixes a string created with Windows-specific mapping rules.
         *
         * @param source
         *            String created with Windows-specific mapping rules
         * @return The fixed string
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  10. fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

            try {
                final int maxCount = 50;
                final int numOfThread = 10;
    
                final File file = File.createTempFile("crawler-", "");
                file.delete();
                file.mkdirs();
                file.deleteOnExit();
                fileTransformer.setPath(file.getAbsolutePath());
                crawler.addUrl(url);
                crawler.crawlerContext.setMaxAccessCount(maxCount);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top