Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addExpectedContent (0.24 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

            wagon.addExpectedContent(repos.get(0).getLayout().pathOf(artifact), "expected");
            wagon.addExpectedContent(
                    repos.get(0).getLayout().pathOf(artifact) + ".md5", "cd26d9e10ce691cc69aa2b90dcebbdac");
            wagon.addExpectedContent(repos.get(1).getLayout().pathOf(artifact), "expected");
            wagon.addExpectedContent(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java

    import org.apache.maven.wagon.resource.Resource;
    
    @Named("string")
    @Singleton
    public class StringWagon extends StreamWagon {
        private Map<String, String> expectedContent = new HashMap<>();
    
        public void addExpectedContent(String resourceName, String expectedContent) {
            this.expectedContent.put(resourceName, expectedContent);
        }
    
        public String[] getSupportedProtocols() {
            return new String[] {"string"};
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top