aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2011-06-27 16:47:22 +0000
committerOlivier Lamy <olamy@apache.org>2011-06-27 16:47:22 +0000
commitbb80f7ba1ac93b314892f461e2d5158d5b921143 (patch)
tree0c6cac42f9db275066cabda7dd9b514e27660bb9
parentf124a475e993d7e45e2a8a6e110aa656c675768f (diff)
downloadarchiva-bb80f7ba1ac93b314892f461e2d5158d5b921143.tar.gz
archiva-bb80f7ba1ac93b314892f461e2d5158d5b921143.zip
context close already done in tearDown
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1140234 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java
index 3aa625a29..0ad3c678b 100644
--- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java
+++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutorTest.java
@@ -297,12 +297,8 @@ public class ArchivaIndexingTaskExecutorTest
indexer.constructQuery( MAVEN.ARTIFACT_ID, new StringSearchExpression( "archiva-index-methods-jar-test" ) ),
Occur.SHOULD );
- IndexingContext context = indexer.addIndexingContext( repositoryConfig.getId(), repositoryConfig.getId(),
- new File( repositoryConfig.getLocation() ), destDir, null,
- null, ArchivaNexusIndexerUtil.FULL_INDEX );
- context.setSearchable( true );
- FlatSearchRequest request = new FlatSearchRequest( q );
+ FlatSearchRequest request = new FlatSearchRequest( q, getIndexingContext() );
FlatSearchResponse response = indexer.searchFlat( request );
assertEquals( 1, response.getTotalHits() );
@@ -313,8 +309,6 @@ public class ArchivaIndexingTaskExecutorTest
assertEquals( "org.apache.archiva", artifactInfo.groupId );
assertEquals( "archiva-index-methods-jar-test", artifactInfo.artifactId );
assertEquals( "test-repo", artifactInfo.repository );
-
- context.close( true );
}
private void unzipIndex( String indexDir, String destDir )