correct timestamp issues in tests

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@389172 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2006-03-27 15:35:46 +00:00
parent ef39f31eca
commit d63c3ebf03
1 changed files with 5 additions and 0 deletions

View File

@ -84,20 +84,25 @@ public class EclipseRepositoryIndexTest
indexer.optimize();
indexer.close();
long historicTime = artifactFileTime - 10000L;
artifact = getArtifact( "org.apache.maven", "maven-model", "2.0" );
artifact.setFile( new File( repository.getBasedir(), repository.pathOf( artifact ) ) );
artifact.getFile().setLastModified( historicTime );
indexer.indexArtifact( artifact );
indexer.optimize();
indexer.close();
artifact = getArtifact( "test", "test-artifactId", "1.0" );
artifact.setFile( new File( repository.getBasedir(), repository.pathOf( artifact ) ) );
artifact.getFile().setLastModified( historicTime );
indexer.indexArtifact( artifact );
indexer.optimize();
indexer.close();
artifact = getArtifact( "test", "test-artifactId", "1.0" );
artifact.setFile( new File( repository.getBasedir(), repository.pathOf( artifact ) ) );
artifact.getFile().setLastModified( historicTime );
indexer.indexArtifact( artifact );
indexer.optimize();
indexer.close();