From d63c3ebf0311a22ee3d96986508dd86dae2653b3 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Mon, 27 Mar 2006 15:35:46 +0000 Subject: [PATCH] correct timestamp issues in tests git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@389172 13f79535-47bb-0310-9956-ffa450edef68 --- .../repository/indexing/EclipseRepositoryIndexTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/EclipseRepositoryIndexTest.java b/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/EclipseRepositoryIndexTest.java index 2475478bf..132e1f450 100644 --- a/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/EclipseRepositoryIndexTest.java +++ b/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/EclipseRepositoryIndexTest.java @@ -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();