use of org.jetbrains.idea.maven.server.embedder.Maven2ServerIndexFetcher in project intellij-community by JetBrains.
the class NexusIndexerTest method _testDownloading.
public void _testDownloading() throws Exception {
String id = "remote";
String url = "file:///" + myRepositoryHelper.getTestDataPath("remote");
IndexingContext c = addContext(id, myIndexDir, null, url);
IndexUpdateRequest request = new IndexUpdateRequest(c);
request.setResourceFetcher(new Maven2ServerIndexFetcher(id, url, myEmbedder.getComponent(WagonManager.class), new NullTransferListener()));
myUpdater.fetchAndUpdateIndex(request);
assertSearchWorks();
}
Aggregations