@Test public void computeAssetPathComponent() { Asset asset = createAsset("jquery/-/jquery-1.0.0.tgz"); Component component = new DefaultComponent(); List<BrowsePaths> assetPaths = generator.computeAssetPaths(asset, component); assertPaths(asList("jquery", "jquery-1.0.0.tgz"), asList("jquery", "-/jquery-1.0.0.tgz"), assetPaths); }
@Override public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) { checkNotNull(asset); return super.computeAssetPaths(asset, component).stream().filter(paths -> !"-".equals(paths.getDisplayName())) .collect(toList()); }
NpmBrowseNodeGenerator extends AssetPathBrowseNodeGenerator { @Override public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) { checkNotNull(asset); return super.computeAssetPaths(asset, component).stream().filter(paths -> !"-".equals(paths.getDisplayName())) .collect(toList()); } }
NpmBrowseNodeGenerator extends AssetPathBrowseNodeGenerator { @Override public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) { checkNotNull(asset); return super.computeAssetPaths(asset, component).stream().filter(paths -> !"-".equals(paths.getDisplayName())) .collect(toList()); }  }
NpmBrowseNodeGenerator extends AssetPathBrowseNodeGenerator { @Override public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) { checkNotNull(asset); return super.computeAssetPaths(asset, component).stream().filter(paths -> !"-".equals(paths.getDisplayName())) .collect(toList()); }  @Override List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component); }
NpmBrowseNodeGenerator extends AssetPathBrowseNodeGenerator { @Override public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) { checkNotNull(asset); return super.computeAssetPaths(asset, component).stream().filter(paths -> !"-".equals(paths.getDisplayName())) .collect(toList()); }  @Override List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component);  }