Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for readAllBytes (0.06 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

                Artifact artifact = createArtifact("artifact", "1.0");
    
                File file = new File(artifactBasedir, "artifact-1.0.jar");
                assertEquals("dummy", new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8).trim());
    
                artifactDeployer.deploy(file, artifact, remoteRepository(), localRepository());
    
                ArtifactRepository remoteRepository = remoteRepository();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java

            }
        }
    
        /**
         * Test that resource content is properly read using readAllBytes.
         * Verifies that the new implementation correctly reads entire resource content.
         */
        @Test
        public void testResourceReading_readAllBytesCorrectness() throws Exception {
            // Read using the new method (readAllBytes)
            String contentNew;
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. build-logic-settings/UpdateDevelocityPluginVersion.java

                "settings.gradle.kts"
            };
    
            for (String file : files) {
                File f = new File(file);
                if (f.exists()) {
                    String content = new String(Files.readAllBytes(f.toPath()));
                    content = content.replaceAll("com.gradle:develocity-gradle-plugin:[^\\\"]*\"", "com.gradle:develocity-gradle-plugin:" + newVersion + '"');
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Jan 23 17:40:08 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/cisupport/CIDetectorHelperTest.java

                    .forEach(k -> processBuilder.environment().remove(k));
            Process process = processBuilder.start();
            process.waitFor();
            return new String(process.getInputStream().readAllBytes());
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Apr 13 18:50:07 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  5. CLAUDE.md

    try (InputStream is = getClass().getClassLoader()
            .getResourceAsStream("suggest_indices/suggest.json")) {
        if (is == null) {
            throw new IOException("Resource not found");
        }
        return new String(is.readAllBytes(), StandardCharsets.UTF_8);
    }
    ```
    
    ---
    
    ## Quick Reference
    
    ### Essential Files
    
    | File | Purpose |
    |------|---------|
    | `Suggester.java` | Main entry point, index management |
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

            Files.writeString(testFile, content);
    
            Source source = Sources.fromPath(testFile);
            try (InputStream inputStream = source.openStream()) {
                String readContent = new String(inputStream.readAllBytes());
                assertEquals(content, readContent);
            }
        }
    
        @Test
        void testNullHandling() {
            assertThrows(NullPointerException.class, () -> Sources.fromPath(null));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top