Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #52 from giuliah/fcrepo-message-reindex
Browse files Browse the repository at this point in the history
removed redundant reindex method
  • Loading branch information
Andrew Woods committed Aug 22, 2014
2 parents d4c95be + 7d35b63 commit d90713c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,15 +354,6 @@ private void index( final String uri, final String eventType ) {
}
}

/**
* Reindex all content in the repository by retrieving the root resource
* and recursively reindexing all indexable child resources.
* @param baseURI Repository base URI (e.g., http://localhost:8080/rest/).
**/
public void reindex( final String baseURI ) {
reindex( baseURI, true );
}

/**
* Reindex a resource (and optionally all of its children).
* @param uri The resource URI to reindex.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void testRDFIndexablePropertyUpdateMessage() throws Exception {
public void testReindex() throws Exception {
mockContent("", true, null);
when(indexer.getIndexerType()).thenReturn(Indexer.IndexerType.RDF);
indexerGroup.reindex(repoUrl);
indexerGroup.reindex(repoUrl,true);
verify(indexer,atLeastOnce()).update(eq(repoUrl), any());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void testIndexerGroupReindex() throws Exception {
testIndexer.clear();

// reindex everything
indexerGroup.reindex(serverAddress);
indexerGroup.reindex(serverAddress, true);

// records should be reindexed
synchronized (testIndexer) {
Expand Down

0 comments on commit d90713c

Please sign in to comment.