maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r662429 - /maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/StreamingWagonTestCase.java
Date Mon, 02 Jun 2008 13:35:45 GMT
Author: brett
Date: Mon Jun  2 06:35:45 2008
New Revision: 662429

URL: http://svn.apache.org/viewvc?rev=662429&view=rev
Log:
[WAGON-101] fix timestamp issues on tests

Modified:
    maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/StreamingWagonTestCase.java

Modified: maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/StreamingWagonTestCase.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/StreamingWagonTestCase.java?rev=662429&r1=662428&r2=662429&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/StreamingWagonTestCase.java
(original)
+++ maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/StreamingWagonTestCase.java
Mon Jun  2 06:35:45 2008
@@ -31,6 +31,7 @@
 import org.apache.maven.wagon.authentication.AuthenticationException;
 import org.apache.maven.wagon.authorization.AuthorizationException;
 import org.apache.maven.wagon.observers.ChecksumObserver;
+import org.apache.maven.wagon.resource.Resource;
 import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.IOUtil;
 
@@ -105,7 +106,8 @@
             setupRepositories();
             setupWagonTestingFixtures();
             int expectedSize = putFile();
-            getIfNewerToStream( sourceFile.lastModified() + 30000, false, expectedSize );
+            getIfNewerToStream( getExpectedLastModifiedOnGet( testRepository, new Resource(
resource ) ) + 30000,
+                                false, expectedSize );
         }
     }
 
@@ -130,7 +132,8 @@
             setupRepositories();
             setupWagonTestingFixtures();
             int expectedSize = putFile();
-            getIfNewerToStream( sourceFile.lastModified(), false, expectedSize );
+            getIfNewerToStream( getExpectedLastModifiedOnGet( testRepository, new Resource(
resource ) ), false,
+                                expectedSize );
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-commits-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-commits-help@maven.apache.org


Mime
View raw message