use of org.apache.archiva.rest.api.model.ArtifactContentEntry in project archiva by apache.
the class ArtifactContentEntriesTests method readArtifactContentEntriesDirectoryAndFiles.
@Test
public void readArtifactContentEntriesDirectoryAndFiles() throws Exception {
Path file = Paths.get(getBasedir(), "src/test/repo-with-osgi/commons-logging/commons-logging/1.1/commons-logging-1.1.jar");
List<ArtifactContentEntry> artifactContentEntries = browseService.readFileEntries(file, "org/apache/commons/logging/", "foo");
log.info("artifactContentEntries: {}", artifactContentEntries);
assertThat(artifactContentEntries).isNotNull().isNotEmpty().hasSize(10).contains(new ArtifactContentEntry("org/apache/commons/logging/impl", false, 4, "foo"), new ArtifactContentEntry("org/apache/commons/logging/LogSource.class", true, 4, "foo"));
}
Aggregations