You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wagon-commits@maven.apache.org by br...@apache.org on 2006/11/20 14:50:30 UTC
svn commit: r477175 -
/maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
Author: brett
Date: Mon Nov 20 05:50:29 2006
New Revision: 477175
URL: http://svn.apache.org/viewvc?view=rev&rev=477175
Log:
fix file tests
Modified:
maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
Modified: maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java?view=diff&rev=477175&r1=477174&r2=477175
==============================================================================
--- maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java (original)
+++ maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java Mon Nov 20 05:50:29 2006
@@ -313,9 +313,7 @@
FileUtils.deleteDirectory( sourceFile );
- createDirectory( wagon, resourceToCreate, resources, dirName );
-
- wagon.connect( testRepository, getAuthInfo() );
+ createDirectory( wagon, resourceToCreate, dirName );
for ( int i = 0; i < resources.length; i++ )
{
@@ -347,11 +345,10 @@
*
* @param wagon
* @param resourceToCreate name of the resource to be created
- * @param resourcesPresent names of the resources that we'll check don't exist
* @param dirName directory name to create
* @throws Exception
*/
- protected void createDirectory( Wagon wagon, String resourceToCreate, String[] resourcesPresent, String dirName )
+ protected void createDirectory( Wagon wagon, String resourceToCreate, String dirName )
throws Exception
{
writeTestFile( resourceToCreate );
@@ -359,17 +356,6 @@
wagon.connect( testRepository, getAuthInfo() );
wagon.putDirectory( sourceFile, dirName );
-
- for ( int i = 0; i < resourcesPresent.length; i++ )
- {
- String resourceName = dirName + "/" + resourcesPresent[i];
-
- File destFile = FileTestUtils.createUniqueFile( getName(), resourceName );
-
- destFile.deleteOnExit();
-
- wagon.get( resourceName, destFile );
- }
wagon.disconnect();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-commits-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-commits-help@maven.apache.org