You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2011/09/15 22:30:58 UTC
svn commit: r1171257 -
/maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/ConcurrentUseWithMergedContextPublishingTest.java
Author: olamy
Date: Thu Sep 15 20:30:58 2011
New Revision: 1171257
URL: http://svn.apache.org/viewvc?rev=1171257&view=rev
Log:
cleanup file created during test
Modified:
maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/ConcurrentUseWithMergedContextPublishingTest.java
Modified: maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/ConcurrentUseWithMergedContextPublishingTest.java
URL: http://svn.apache.org/viewvc/maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/ConcurrentUseWithMergedContextPublishingTest.java?rev=1171257&r1=1171256&r2=1171257&view=diff
==============================================================================
--- maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/ConcurrentUseWithMergedContextPublishingTest.java (original)
+++ maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/ConcurrentUseWithMergedContextPublishingTest.java Thu Sep 15 20:30:58 2011
@@ -19,18 +19,18 @@ package org.apache.maven.index;
* under the License.
*/
-import java.io.File;
-import java.io.IOException;
-import java.util.concurrent.atomic.AtomicInteger;
-
import org.apache.maven.index.context.IndexingContext;
import org.apache.maven.index.packer.IndexPacker;
import org.apache.maven.index.packer.IndexPackingRequest;
+import java.io.File;
+import java.io.IOException;
+import java.util.concurrent.atomic.AtomicInteger;
+
/**
* The point in this test is: we use Merged context, and we modify some of the "members" in the merged context, while we
* try to publish those simultaneously.
- *
+ *
* @author cstamas
*/
public class ConcurrentUseWithMergedContextPublishingTest
@@ -52,6 +52,18 @@ public class ConcurrentUseWithMergedCont
}
@Override
+ protected void tearDown()
+ throws Exception
+ {
+ File props = new File( IndexingContext.INDEX_PACKER_PROPERTIES_FILE );
+ if ( props.exists() )
+ {
+ props.delete();
+ }
+ super.tearDown();
+ }
+
+ @Override
protected int readIndex( final NexusIndexer nexusIndexer, final IndexingContext indexingContext )
throws IOException
{