diff options
author | James Moger <james.moger@gitblit.com> | 2012-02-26 17:40:48 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-02-26 17:40:48 -0500 |
commit | e31da050c6ab5ece38fb18196948337395ae59e6 (patch) | |
tree | 3f5b785e45a2609713f1eb74ef31279e7270f25c /tests | |
parent | 85e0731a160baf33336596c6c8bb1cb042ac85bc (diff) | |
download | gitblit-e31da050c6ab5ece38fb18196948337395ae59e6.tar.gz gitblit-e31da050c6ab5ece38fb18196948337395ae59e6.zip |
Partially working Lucene executor. Needs refactoring. (issue 16)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/com/gitblit/tests/IssuesTest.java | 4 | ||||
-rw-r--r-- | tests/com/gitblit/tests/LuceneUtilsTest.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/com/gitblit/tests/IssuesTest.java b/tests/com/gitblit/tests/IssuesTest.java index 1224a040..92952119 100644 --- a/tests/com/gitblit/tests/IssuesTest.java +++ b/tests/com/gitblit/tests/IssuesTest.java @@ -128,7 +128,7 @@ public class IssuesTest { // build a new Lucene index
LuceneUtils.deleteIndex(repository);
for (IssueModel anIssue : allIssues) {
- LuceneUtils.index(repository, anIssue, false);
+ LuceneUtils.index(repository, anIssue);
}
List<SearchResult> hits = LuceneUtils.search("working", 10, repository);
assertTrue(hits.size() > 0);
@@ -139,7 +139,7 @@ public class IssuesTest { change.comment("this is a test of reindexing an issue");
IssueUtils.updateIssue(repository, issue.id, change);
issue = IssueUtils.getIssue(repository, issue.id);
- LuceneUtils.index(repository, issue, true);
+ LuceneUtils.index(repository, issue);
// delete all issues
for (IssueModel anIssue : allIssues) {
diff --git a/tests/com/gitblit/tests/LuceneUtilsTest.java b/tests/com/gitblit/tests/LuceneUtilsTest.java index 70756953..7f3dad0e 100644 --- a/tests/com/gitblit/tests/LuceneUtilsTest.java +++ b/tests/com/gitblit/tests/LuceneUtilsTest.java @@ -37,17 +37,17 @@ public class LuceneUtilsTest { public void testFullIndex() throws Exception {
// reindex helloworld
Repository repository = GitBlitSuite.getHelloworldRepository();
- LuceneUtils.index(repository);
+ LuceneUtils.reindex(repository);
repository.close();
// reindex theoretical physics
repository = GitBlitSuite.getTheoreticalPhysicsRepository();
- LuceneUtils.index(repository);
+ LuceneUtils.reindex(repository);
repository.close();
// reindex JGit
repository = GitBlitSuite.getJGitRepository();
- LuceneUtils.index(repository);
+ LuceneUtils.reindex(repository);
repository.close();
LuceneUtils.close();
|