@Test public void computeComponentPathWithComponent() { Component component = createComponent("component", "group", "1.0.0"); Asset asset = createAsset("asset/path/foo", component); List<BrowsePath> paths = generator.computeComponentPaths(asset); assertPaths(asList("asset", "path"), paths, true); }
@Override public List<BrowsePath> computeComponentPaths(final Asset asset) { List<BrowsePath> assetPaths = computeAssetPaths(asset); return assetPaths.subList(0, assetPaths.size() - 1); }
ComponentPathBrowseNodeGenerator extends AssetPathBrowseNodeGenerator { @Override public List<BrowsePath> computeComponentPaths(final Asset asset) { List<BrowsePath> assetPaths = computeAssetPaths(asset); return assetPaths.subList(0, assetPaths.size() - 1); } }
ComponentPathBrowseNodeGenerator extends AssetPathBrowseNodeGenerator { @Override public List<BrowsePath> computeComponentPaths(final Asset asset) { List<BrowsePath> assetPaths = computeAssetPaths(asset); return assetPaths.subList(0, assetPaths.size() - 1); }  }
ComponentPathBrowseNodeGenerator extends AssetPathBrowseNodeGenerator { @Override public List<BrowsePath> computeComponentPaths(final Asset asset) { List<BrowsePath> assetPaths = computeAssetPaths(asset); return assetPaths.subList(0, assetPaths.size() - 1); }  @Override List<BrowsePath> computeComponentPaths(final Asset asset); }
ComponentPathBrowseNodeGenerator extends AssetPathBrowseNodeGenerator { @Override public List<BrowsePath> computeComponentPaths(final Asset asset) { List<BrowsePath> assetPaths = computeAssetPaths(asset); return assetPaths.subList(0, assetPaths.size() - 1); }  @Override List<BrowsePath> computeComponentPaths(final Asset asset);  }