@Test public void shouldComputeAssetPathWithoutComponent() { final String assetPath = "bin/macosx/el-capitan/contrib/3.6/devtools_2.2.1.tgz"; Asset asset = createAsset(assetPath); List<BrowsePaths> pathsAsset = generator.computeAssetPaths(asset, null); assertPaths(Arrays.asList(assetPath.split("/")), pathsAsset, false); }
@Override public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) { checkNotNull(asset); if (component != null) { List<BrowsePaths> paths = computeComponentPaths(asset, component); String lastSegment = lastSegment(asset.name()); BrowsePaths.appendPath(paths, lastSegment); return paths; } else { return super.computeAssetPaths(asset, null); } }
RBrowseNodeGenerator extends ComponentPathBrowseNodeGenerator { @Override public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) { checkNotNull(asset); if (component != null) { List<BrowsePaths> paths = computeComponentPaths(asset, component); String lastSegment = lastSegment(asset.name()); BrowsePaths.appendPath(paths, lastSegment); return paths; } else { return super.computeAssetPaths(asset, null); } } }
RBrowseNodeGenerator extends ComponentPathBrowseNodeGenerator { @Override public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) { checkNotNull(asset); if (component != null) { List<BrowsePaths> paths = computeComponentPaths(asset, component); String lastSegment = lastSegment(asset.name()); BrowsePaths.appendPath(paths, lastSegment); return paths; } else { return super.computeAssetPaths(asset, null); } }  }
RBrowseNodeGenerator extends ComponentPathBrowseNodeGenerator { @Override public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) { checkNotNull(asset); if (component != null) { List<BrowsePaths> paths = computeComponentPaths(asset, component); String lastSegment = lastSegment(asset.name()); BrowsePaths.appendPath(paths, lastSegment); return paths; } else { return super.computeAssetPaths(asset, null); } }  @Override List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component); @Override List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component); }
RBrowseNodeGenerator extends ComponentPathBrowseNodeGenerator { @Override public List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component) { checkNotNull(asset); if (component != null) { List<BrowsePaths> paths = computeComponentPaths(asset, component); String lastSegment = lastSegment(asset.name()); BrowsePaths.appendPath(paths, lastSegment); return paths; } else { return super.computeAssetPaths(asset, null); } }  @Override List<BrowsePaths> computeAssetPaths(final Asset asset, @Nullable final Component component); @Override List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component);  }