maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-wagon/wagon-provider-api/src/test/java/org/apache/maven/wagon LazyFileOutputStreamTest.java
Date Tue, 08 Mar 2005 06:40:50 GMT
brett       2005/03/07 22:40:50

  Modified:    wagon-provider-api/src/main/java/org/apache/maven/wagon
                        FileTestUtils.java
               wagon-provider-api/src/test/java/org/apache/maven/wagon
                        LazyFileOutputStreamTest.java
  Log:
  remove junit dependency in API
  
  Revision  Changes    Path
  1.3       +1 -25     maven-wagon/wagon-provider-api/src/main/java/org/apache/maven/wagon/FileTestUtils.java
  
  Index: FileTestUtils.java
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-provider-api/src/main/java/org/apache/maven/wagon/FileTestUtils.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FileTestUtils.java	10 Aug 2004 20:35:52 -0000	1.2
  +++ FileTestUtils.java	8 Mar 2005 06:40:50 -0000	1.3
  @@ -17,8 +17,6 @@
    * ====================================================================
    */
   
  -import junit.framework.TestCase;
  -
   import java.io.File;
   import java.io.FileWriter;
   import java.io.IOException;
  @@ -49,13 +47,6 @@
       }
   
   
  -    public static final File createUniqueFile( final TestCase testCase ) throws IOException
  -    {
  -
  -        return createUniqueFile( testCase.getName() );
  -
  -    }
  -
       public static final File createUniqueDir( final String name ) throws IOException
       {
   
  @@ -66,14 +57,6 @@
       }
   
   
  -    public static final File createUniqueDir( final TestCase testCase ) throws IOException
  -    {
  -
  -        return createUniqueDir( testCase.getName() );
  -
  -    }
  -
  -
       public static final File createDir( final String  name ) throws IOException
       {
   
  @@ -95,13 +78,6 @@
           return retValue;
       }
   
  -    public static final File createDir( final TestCase testCase ) throws IOException
  -    {
  -        return createDir(  testCase.getName() );
  -    }
  -
  -
  -
       public static final File getTestOutputDir()
       {
           final String tempDir = System.getProperty( "java.io.tmpdir" );
  
  
  
  1.5       +4 -4      maven-wagon/wagon-provider-api/src/test/java/org/apache/maven/wagon/LazyFileOutputStreamTest.java
  
  Index: LazyFileOutputStreamTest.java
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-provider-api/src/test/java/org/apache/maven/wagon/LazyFileOutputStreamTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LazyFileOutputStreamTest.java	7 Dec 2004 11:41:37 -0000	1.4
  +++ LazyFileOutputStreamTest.java	8 Mar 2005 06:40:50 -0000	1.5
  @@ -17,11 +17,11 @@
    * ====================================================================
    */
   
  -import java.io.File;
  -
   import junit.framework.TestCase;
   import org.apache.maven.wagon.util.FileUtils;
   
  +import java.io.File;
  +
   /**
    * @author <a href="mailto:mmaczka@interia.pl">Michal Maczka</a> 
    * @version $Id$ 
  @@ -31,7 +31,7 @@
   
        public void testFileCreation() throws Exception
        {
  -         File file = FileTestUtils.createUniqueFile( this );
  +         File file = FileTestUtils.createUniqueFile( getName() );
                
            file.deleteOnExit();
   
  
  
  

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


Mime
View raw message