@Test public void computeComponentPath() { Component component = createComponent("nano", "amd64", "1.0.0"); Asset asset = createAsset("path/assetName"); List<BrowsePaths> paths = generator.computeComponentPaths(asset, component); assertPaths(asList("packages", "n", "nano", "1.0.0", "amd64", "nano"), paths, true); }
@Override public List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component) { List<String> pathParts = new ArrayList<>(); pathParts.add(PACKAGES_PATH); pathParts.add(component.name().substring(0, 1).toLowerCase()); pathParts.add(component.name()); pathParts.add(component.version()); pathParts.add(component.group()); pathParts.add(component.name()); return BrowsePaths.fromPaths(pathParts, true); }
AptBrowseNodeGenerator implements
    BrowseNodeGenerator { @Override public List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component) { List<String> pathParts = new ArrayList<>(); pathParts.add(PACKAGES_PATH); pathParts.add(component.name().substring(0, 1).toLowerCase()); pathParts.add(component.name()); pathParts.add(component.version()); pathParts.add(component.group()); pathParts.add(component.name()); return BrowsePaths.fromPaths(pathParts, true); } }
AptBrowseNodeGenerator implements
    BrowseNodeGenerator { @Override public List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component) { List<String> pathParts = new ArrayList<>(); pathParts.add(PACKAGES_PATH); pathParts.add(component.name().substring(0, 1).toLowerCase()); pathParts.add(component.name()); pathParts.add(component.version()); pathParts.add(component.group()); pathParts.add(component.name()); return BrowsePaths.fromPaths(pathParts, true); }  }
AptBrowseNodeGenerator implements
    BrowseNodeGenerator { @Override public List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component) { List<String> pathParts = new ArrayList<>(); pathParts.add(PACKAGES_PATH); pathParts.add(component.name().substring(0, 1).toLowerCase()); pathParts.add(component.name()); pathParts.add(component.version()); pathParts.add(component.group()); pathParts.add(component.name()); return BrowsePaths.fromPaths(pathParts, true); }  @Override List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component); @Override List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component); }
AptBrowseNodeGenerator implements
    BrowseNodeGenerator { @Override public List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component) { List<String> pathParts = new ArrayList<>(); pathParts.add(PACKAGES_PATH); pathParts.add(component.name().substring(0, 1).toLowerCase()); pathParts.add(component.name()); pathParts.add(component.version()); pathParts.add(component.group()); pathParts.add(component.name()); return BrowsePaths.fromPaths(pathParts, true); }  @Override List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component); @Override List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component);  }