mirror of https://github.com/apache/archiva.git
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:
parent
ef39f31eca
commit
d63c3ebf03
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue